13 protected int m_iHUDPriorityDefault;
15 protected const int HEIGHT_DIVIDER = 50;
16 protected const int INPUTFIELD_HEIGHT = 2;
19 override void DisplayUpdate(IEntity owner,
float timeSlice)
23 m_ChatPanel.OnUpdateChat(timeSlice);
40 override void DisplayStartDraw(IEntity owner)
42 InputManager inputMgr =
GetGame().GetInputManager();
43 inputMgr.AddActionListener(
"ChatToggle", EActionTrigger.DOWN, Callback_OnToggleAction);
48 Widget wChatPanel =
m_wRoot.FindAnyWidget(
"ChatPanel");
63 m_ChatPanel.GetOnChatOpen().Insert(OnChatOpen);
64 m_ChatPanel.GetOnChatClosed().Insert(OnChatClose);
70 protected void OnSlotUIResize()
78 maxLines -= INPUTFIELD_HEIGHT;
82 m_ChatPanel.OnHUDResize(maxLines);
110 override void DisplayStopDraw(IEntity owner)
112 InputManager inputMgr =
GetGame().GetInputManager();
113 inputMgr.RemoveActionListener(
"ChatToggle", EActionTrigger.DOWN, Callback_OnToggleAction);
122 protected void Callback_OnToggleAction()
127 if (!m_ChatPanel.IsOpen())