Advertisement
Guest User

Untitled

a guest
May 10th, 2017
3,475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. function showPanel()
  2. {
  3. trace ("Scoreboard: Calling showPanel!");
  4. if (!scoreboardVisible)
  5. {
  6. m_numSelectedRowIndex = 0;
  7. if (GetGamePhase() == 4 || GetGamePhase() == 5)
  8. {
  9. _global.navManager.PushLayout(scoreboardCursorNav, "scoreboardCursorNav");
  10. ScoreBoard.InnerScoreBoard.CursorHint.Hint.CursorHintText.htmlText = "#SFUI_Scoreboard_Navigation_Cursor_Choose";
  11. }
  12. else
  13. {
  14. _global.navManager.PushLayout(scoreboardNav, "scoreboardNav");
  15. var _loc3 = _global.GameInterface.Translate(gameAPI.GetMouseEnableBindingName());
  16. var _loc2 = _global.GameInterface.Translate("#SFUI_Scoreboard_Navigation_Cursor_Hint");
  17. _loc2 = _global.ConstructString(_loc2, _loc3);
  18. ScoreBoard.InnerScoreBoard.CursorHint.Hint.CursorHintText.htmlText = _loc2;
  19. } // end else if
  20. ScoreBoard.InnerScoreBoard.CursorHint.gotoAndPlay("StartAnim");
  21. TickerTextField.autoSize = true;
  22. ScoreBoard.gotoAndStop("StartShow");
  23. ScoreBoard._visible = true;
  24. scoreboardVisible = true;
  25. ScoreBoard.InnerScoreBoard.ItemPanelParent.ItemPanel._visible = false;
  26. ScoreBoard.InnerScoreBoard.ItemDropPanelIndividual._visible = false;
  27. UpdateTextSettings();
  28. DisplayMusicKit();
  29. UpdateTeamNameColor();
  30. if (GetGamePhase() != 5)
  31. {
  32. ScoreBoard.InnerScoreBoard.XpPanel._visible = false;
  33. ScoreBoard.InnerScoreBoard.EloPanel._visible = false;
  34. QuestPanelShow();
  35. + SkirmishPanelShow();
  36. }
  37. else
  38. {
  39. ScoreBoard.InnerScoreBoard.QuestPanel._visible = false;
  40. } // end else if
  41. if (GetNumPlayers() != "TenPlayer")
  42. {
  43. _global.WinPanelRoot._alpha = 0;
  44. } // end if
  45. trace ("Scoreboard: is now being shown!");
  46. var _loc4 = gameAPI.IsLocalPlayerHLTV();
  47. if (_loc4)
  48. {
  49. OnRightClick("");
  50. } // end if
  51. fillOutWinHistory();
  52. m_teamLogo_CT = "";
  53. m_teamLogo_T = "";
  54. FillCoopScoreDataStart();
  55. } // end if
  56. } // End of the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement