Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CountingTimerUI.c
Go to the documentation of this file.
2{
3
4 [Attribute("", desc: "name of widget of icon attached to the timer")]
5 protected string m_sIconName;
6
8
9 //------------------------------------------------------------------------------------------------
10 protected void UpdateIngameIcon()
11 {
12 if (!m_wImageWidget)
13 return;
14
16 return;
17
18 if (m_wImageWidget.GetOpacity() == 1)
20 else
22 }
23
24 //------------------------------------------------------------------------------------------------
25 override void HandlerAttached(Widget w)
26 {
27 m_wRoot = w;
28 m_wImageWidget = ImageWidget.Cast(w.FindAnyWidget(m_sIconName));
29
30 if (!m_wImageWidget)
31 return;
32
33 // Update the icon at 30 fps. It needs to update when the animation has finished to make re-animating seamless
34 GetGame().GetCallqueue().CallLater(UpdateIngameIcon, 30, true);
35 }
36}
ArmaReforgerScripted GetGame()
Definition game.c:1398
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static WidgetAnimationOpacity Opacity(Widget widget, float targetValue, float speed, bool toggleVisibility=false)
static bool IsAnimating(Widget w)
override void HandlerAttached(Widget w)
SCR_FieldOfViewSettings Attribute