4 [
Attribute(
"",
desc:
"name of widget of icon attached to the timer")]
5 protected string m_sIconName;
7 protected ImageWidget m_wImageWidget;
10 protected void UpdateIngameIcon()
15 if (AnimateWidget.IsAnimating(m_wImageWidget))
18 if (m_wImageWidget.GetOpacity() == 1)
19 AnimateWidget.Opacity(m_wImageWidget, 0, 1);
21 AnimateWidget.Opacity(m_wImageWidget, 1, 1);
25 override void HandlerAttached(Widget w)
28 m_wImageWidget = ImageWidget.Cast(w.FindAnyWidget(m_sIconName));
34 GetGame().GetCallqueue().CallLater(UpdateIngameIcon, 30,
true);