Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_CountingTimerUI.c
Go to the documentation of this file.
1
class
SCR_CountingTimerUI
:
SCR_ScriptedWidgetComponent
2
{
3
4
[
Attribute
(
""
,
desc
:
"name of widget of icon attached to the timer"
)]
5
protected
string
m_sIconName
;
6
7
protected
ImageWidget
m_wImageWidget
;
8
9
//------------------------------------------------------------------------------------------------
10
protected
void
UpdateIngameIcon
()
11
{
12
if
(!
m_wImageWidget
)
13
return
;
14
15
if
(
AnimateWidget
.
IsAnimating
(
m_wImageWidget
))
16
return
;
17
18
if
(
m_wImageWidget
.GetOpacity() == 1)
19
AnimateWidget
.
Opacity
(
m_wImageWidget
, 0, 1);
20
else
21
AnimateWidget
.
Opacity
(
m_wImageWidget
, 1, 1);
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
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
AnimateWidget
Definition
AnimateWidget.c:3
AnimateWidget::Opacity
static WidgetAnimationOpacity Opacity(Widget widget, float targetValue, float speed, bool toggleVisibility=false)
Definition
AnimateWidget.c:167
AnimateWidget::IsAnimating
static bool IsAnimating(Widget w)
Definition
AnimateWidget.c:86
ImageWidget
Definition
ImageWidget.c:13
SCR_CountingTimerUI
Definition
SCR_CountingTimerUI.c:2
SCR_CountingTimerUI::UpdateIngameIcon
void UpdateIngameIcon()
Definition
SCR_CountingTimerUI.c:10
SCR_CountingTimerUI::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_CountingTimerUI.c:25
SCR_CountingTimerUI::m_wImageWidget
ImageWidget m_wImageWidget
Definition
SCR_CountingTimerUI.c:7
SCR_CountingTimerUI::m_sIconName
string m_sIconName
Definition
SCR_CountingTimerUI.c:5
SCR_ScriptedWidgetComponent
Definition
SCR_ScriptedWidgetComponent.c:8
SCR_ScriptedWidgetComponent::m_wRoot
Widget m_wRoot
Definition
SCR_ScriptedWidgetComponent.c:9
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Inventory
SCR_CountingTimerUI.c
Generated by
1.17.0