Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
AnimateWidgetSystem.c
Go to the documentation of this file.
1
/*
2
Helper system to call widget animations updates
3
*/
4
5
class
AnimateWidgetSystem
:
GameSystem
6
{
7
override
static
void
InitInfo(
WorldSystemInfo
outInfo)
8
{
9
outInfo
10
.SetAbstract(
false
)
11
.SetLocation(
ESystemLocation
.Client)
12
.AddPoint(
ESystemPoint
.Frame);
13
}
14
15
protected
ref
AnimateWidget
m_Animator
;
16
17
//------------------------------------------------------------------------------------------------
18
override
void
OnInit
()
19
{
20
super.OnInit();
21
22
m_Animator
=
AnimateWidget
.
GetInstance
();
23
if
(!
m_Animator
)
24
m_Animator
=
new
AnimateWidget
();
25
26
m_Animator
.m_OnAnimatingStarted.Insert(
OnAnimatingStarted
);
27
m_Animator
.m_OnAnimatingCompleted.Insert(
OnAnimatingCompleted
);
28
29
Enable(
m_Animator
.IsActive())
30
}
31
32
//------------------------------------------------------------------------------------------------
33
override
void
OnUpdatePoint
(
WorldUpdatePointArgs
args)
34
{
35
super.OnUpdate(args.GetPoint());
36
37
m_Animator
.UpdateAnimations(args.GetTimeSliceSeconds());
38
}
39
40
//------------------------------------------------------------------------------------------------
41
override
bool
ShouldBeEnabledInEditMode
()
42
{
43
return
true
;
44
}
45
46
//------------------------------------------------------------------------------------------------
47
protected
void
OnAnimatingCompleted
()
48
{
49
Enable(
false
);
50
}
51
52
//------------------------------------------------------------------------------------------------
53
protected
void
OnAnimatingStarted
()
54
{
55
Enable(
true
);
56
}
57
}
AnimateWidget
Definition
AnimateWidget.c:3
AnimateWidget::GetInstance
static sealed AnimateWidget GetInstance()
Definition
AnimateWidget.c:17
AnimateWidgetSystem
Definition
AnimateWidgetSystem.c:6
AnimateWidgetSystem::OnAnimatingCompleted
void OnAnimatingCompleted()
Definition
AnimateWidgetSystem.c:47
AnimateWidgetSystem::m_Animator
ref AnimateWidget m_Animator
Definition
AnimateWidgetSystem.c:15
AnimateWidgetSystem::ShouldBeEnabledInEditMode
override bool ShouldBeEnabledInEditMode()
Definition
AnimateWidgetSystem.c:41
AnimateWidgetSystem::OnUpdatePoint
override void OnUpdatePoint(WorldUpdatePointArgs args)
Definition
AnimateWidgetSystem.c:33
AnimateWidgetSystem::OnAnimatingStarted
void OnAnimatingStarted()
Definition
AnimateWidgetSystem.c:53
AnimateWidgetSystem::OnInit
override void OnInit()
Definition
AnimateWidgetSystem.c:18
GameSystem
Definition
GameSystem.c:16
WorldSystemInfo
Structure holding world system meta-information required by the engine.
Definition
WorldSystemInfo.c:14
WorldUpdatePointArgs
Structure holding extra data of WorldSystem update point.
Definition
WorldUpdatePointArgs.c:14
ESystemPoint
WorldSystemPoint ESystemPoint
Definition
gameLib.c:7
ESystemLocation
WorldSystemLocation ESystemLocation
Definition
gameLib.c:10
scripts
Game
Systems
AnimateWidgetSystem.c
Generated by
1.17.0