3 protected InputManager m_InputManager =
GetGame().GetInputManager();;
4 protected Widget m_BackButton;
5 protected Widget m_ChatButton;
9 override void OnMenuOpen()
14 m_BackButton = widgetRoot.FindAnyWidget(
"Back");
17 comp.m_OnActivated.Insert(ReturnToMainMenu);
20 m_ChatButton = widgetRoot.FindAnyWidget(
"ChatButton");
23 comp.m_OnActivated.Insert(OnChatToggle);
26 Widget wChatPanel =
GetRootWidget().FindAnyWidget(
"ChatPanel");
36 hudManager.SetVisibleLayers(hudManager.GetVisibleLayers() & ~(
EHudLayers.HIGH |
EHudLayers.ALWAYS_TOP));
38 GetGame().GetInputManager().AddActionListener(
"ShowScoreboard", EActionTrigger.DOWN, ShowPlayerList);
41 override void OnMenuClose()
46 PlayerController pc =
GetGame().GetPlayerController();
51 hudManager.SetVisibleLayers(hudManager.GetVisibleLayers() |
EHudLayers.HIGH |
EHudLayers.ALWAYS_TOP);
53 GetGame().GetInputManager().RemoveActionListener(
"ShowScoreboard", EActionTrigger.DOWN, ShowPlayerList);
56 override void OnMenuUpdate(
float tDelta)
58 super.OnMenuUpdate(tDelta);
61 m_ChatPanel.OnUpdateChat(tDelta);
64 protected void OnChatToggle()
66 if (!m_ChatPanel || m_ChatPanel.IsOpen() || (m_ChatButton && (!m_ChatButton.IsVisible() || m_ChatButton.GetOpacity() != 1)))
72 protected void BackToMainMenuPopupComfirm()
78 protected void OnBackToMainMenu()
84 dlg.m_OnConfirm.Insert(BackToMainMenuPopupComfirm);
87 void ReturnToMainMenu()
89 if (m_BackButton && (!m_BackButton.IsVisible() || m_BackButton.GetOpacity() != 1))