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