4 [
Attribute(
desc:
"Name of the widget to which the SCR_HintUIComponent is attached")]
5 protected string m_sHintComponentWidget;
12 override void DisplayStartDraw(IEntity owner)
17 Widget hintWidget =
m_wRoot.FindAnyWidget(m_sHintComponentWidget);
34 if (!m_HUDSlotComponent)
37 m_HintComponent.GetOnHintShown().Insert(OnHintShown);
42 override void DisplayStopDraw(IEntity owner)
44 if (m_HUDSlotComponent)
48 m_HintComponent.GetOnHintShown().Remove(OnHintShown);
52 override void DisplayUpdate(IEntity owner,
float timeSlice)
57 if (m_HUDSlotComponent)
61 if (!m_HUDSlotComponent)
70 protected void OnHintShown(
bool isShown)
77 protected void OnSlotUIResize()
79 Show(m_HintComponent && m_HintComponent.IsHintShown());