42 {
44 int screen_w, screen_h;
45 float w, h;
46 float sx, sy;
47 int offset_x;
48 int offset_y;
49
51
52
53 float button_height_percent = 0.02;
54 float button_height = screen_h * button_height_percent;
55
56 for (
int i = 0; i <
m_count; i++)
57 {
59 if (menu_button)
60 {
61 menu_button.SetSize(0.90, button_height);
62 menu_button.Show(true);
63 }
64 }
65
66
67 AutoHeightSpacer spacer;
69 if ( spacer )
70 {
72 }
73
77
78
80 screen_w -= 10;
81 screen_h -= 10;
82
83 int right_edge =
x + w - offset_x;
84 if (right_edge > screen_w)
85 {
86 x = screen_w - w - offset_x;
87 }
88 else
89 {
91 }
92
93 int bottom_edge =
y + h - offset_y;
94 if (bottom_edge > screen_h)
95 {
97 }
98 else
99 {
101 }
102
105 }
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
proto void GetScreenSize(out int x, out int y)