31 {
32 float x,
y, o_x, o_y, new_x, new_y;
34 {
37 m_Root.GetScreenSize( new_x, new_y );
38 m_Root.GetSize( o_x, o_y );
39
40 bool changed = false;
41 bool hit_limit = false;
42
44 {
46 changed = true;
47 }
48 else
49 new_x = o_x;
50
52 {
54 changed = true;
55 }
56 else
57 new_y = o_y;
58
59 if ( limit > 0 && new_y > limit )
60 {
61 new_y = limit;
62 hit_limit = true;
63 }
64
65 if ( changed )
66 {
67 m_Root.SetSize( new_x, new_y, immedUpdate );
68 }
69
70 changed_size = changed;
71 return hit_limit;
72 }
73 else
74 {
77 {
79 }
80 }
81
82 return false;
83 }
proto void Print(void var)
Prints content of variable to console/log.