-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,league_create_dropdown].cs2
150 lines (150 loc) · 4.84 KB
/
[proc,league_create_dropdown].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// 3041
[proc,league_create_dropdown](component $component0, component $component1, component $component2, int $int3, int $int4)
def_int $colour5 = 0xff981f;
def_struct $struct6 = enum(int, struct, enum_2670, %varbit10032);
if ($struct6 = null) {
return;
}
$colour5 = struct_param($struct6, param_1027);
def_int $int7 = 92;
def_int $int8 = 81;
if (~on_mobile = true) {
$int7 = 112;
$int8 = 115;
}
def_int $int9 = calc($int7 / 4);
def_int $int10 = 6;
if_setsize($int8, calc($int7 + 12), ^setsize_abs, ^setsize_abs, $component1);
cc_create($component1, ^iftype_graphic, $int3);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_light");
$int3 = calc($int3 + 1);
$int3 = ~steelbox($component1, $int3, 0);
if_sethide(true, $component1);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 0) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Info");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 0) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("league_info_mouseover($component1, $int3)");
cc_setonmouseleave("league_info_mouseleave($component1, $int3, $colour5)");
}
}
cc_setop(1, "View Information");
cc_setonop("league_menu_frame_click($component0, $component1, $component2)");
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int3 = calc($int3 + 1);
$int10 = calc($int10 + $int9);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 1) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Tasks");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 1) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("league_info_mouseover($component1, $int3)");
cc_setonmouseleave("league_info_mouseleave($component1, $int3, $colour5)");
}
}
cc_setop(1, "View Tasks");
cc_setonop("league_menu_frame_click($component0, $component1, $component2)");
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int3 = calc($int3 + 1);
$int10 = calc($int10 + $int9);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 3) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Areas");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 3) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("league_info_mouseover($component1, $int3)");
cc_setonmouseleave("league_info_mouseleave($component1, $int3, $colour5)");
}
}
cc_setop(1, "View Areas");
cc_setonop("league_menu_frame_click($component0, $component1, $component2)");
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int3 = calc($int3 + 1);
$int10 = calc($int10 + $int9);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 2) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Relics");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 2) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("league_info_mouseover($component1, $int3)");
cc_setonmouseleave("league_info_mouseleave($component1, $int3, $colour5)");
}
}
cc_setop(1, "View Relics");
cc_setonop("league_menu_frame_click($component0, $component1, $component2)");
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);