4 protected string m_sIconWidgetName;
7 protected string m_sNumberWidgetName;
10 protected ResourceName m_sDefaultIcon;
12 protected Widget m_root;
13 protected ImageWidget m_IconWidget;
14 protected TextWidget m_NumberWidget;
19 void SetNotification(
int number,
SCR_UIInfo info =
null)
24 m_root.SetVisible(
false);
27 else if (number == 1 && info && info.SetIconTo(m_IconWidget))
29 m_NumberWidget.SetVisible(
false);
30 m_root.SetVisible(
true);
35 m_IconWidget.LoadImageTexture(0, m_sDefaultIcon);
36 m_IconWidget.SetImage(0);
37 m_NumberWidget.SetText(number.ToString());
38 m_NumberWidget.SetVisible(
true);
39 m_root.SetVisible(
true);
44 override void HandlerAttached(Widget w)
48 m_NumberWidget = TextWidget.Cast(w.FindAnyWidget(m_sNumberWidgetName));
49 m_root.SetVisible(
false);