DayZ 1.24
Loading...
Searching...
No Matches
Bouncer.c
Go to the documentation of this file.
1// -----------------------------------------------------------
2class Bouncer
3{
6
7 protected float m_orginal_width;
8 protected float m_orginal_height;
9 protected Widget m_root;
11
12 // -----------------------------------------------------------
13 void Bouncer()
14 {
15 m_anim = new AnimatorTimer();
16 }
17
18 // -----------------------------------------------------------
19 protected void Update()
20 {
21 Print("Update");
22
23 if (m_root)
24 {
25 float p = amount * m_anim.GetValue();
27 }
28 }
29
30 // -----------------------------------------------------------
32 {
33 m_root = w;
35 m_anim.AnimateLoop(speed);
36 }
37};
reference float amount
Definition Bouncer.c:4
void Bouncer()
Definition Bouncer.c:13
Widget m_root
Definition Bouncer.c:9
float m_orginal_height
Definition Bouncer.c:8
void OnWidgetScriptInit(Widget w)
Definition Bouncer.c:31
void Update()
Definition Bouncer.c:19
float m_orginal_width
Definition Bouncer.c:7
ref AnimatorTimer m_anim
Definition Bouncer.c:10
reference float speed
Definition Bouncer.c:5
proto void Print(void var)
Prints content of variable to console/log.