Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
AnimateWidgetSystem.c
Go to the documentation of this file.
1/*
2Helper system to call widget animations updates
3*/
4
6{
7 override static void InitInfo(WorldSystemInfo outInfo)
8 {
9 outInfo
10 .SetAbstract(false)
11 .SetLocation(ESystemLocation.Client)
12 .AddPoint(ESystemPoint.Frame);
13 }
14
16
17 //------------------------------------------------------------------------------------------------
18 override void OnInit()
19 {
20 super.OnInit();
21
23 if (!m_Animator)
25
26 m_Animator.m_OnAnimatingStarted.Insert(OnAnimatingStarted);
27 m_Animator.m_OnAnimatingCompleted.Insert(OnAnimatingCompleted);
28
29 Enable(m_Animator.IsActive())
30 }
31
32 //------------------------------------------------------------------------------------------------
34 {
35 super.OnUpdate(args.GetPoint());
36
37 m_Animator.UpdateAnimations(args.GetTimeSliceSeconds());
38 }
39
40 //------------------------------------------------------------------------------------------------
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}
static sealed AnimateWidget GetInstance()
ref AnimateWidget m_Animator
override bool ShouldBeEnabledInEditMode()
override void OnUpdatePoint(WorldUpdatePointArgs args)
Structure holding world system meta-information required by the engine.
Structure holding extra data of WorldSystem update point.
WorldSystemPoint ESystemPoint
Definition gameLib.c:7
WorldSystemLocation ESystemLocation
Definition gameLib.c:10