-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,league_relics_draw_selections].cs2
216 lines (216 loc) · 7.64 KB
/
[proc,league_relics_draw_selections].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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// 3189
[proc,league_relics_draw_selections](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, int $comsubid13)
cc_deleteall($component1);
cc_deleteall($component2);
cc_deleteall($component3);
cc_deleteall($component4);
cc_deleteall($component5);
cc_deleteall($component0);
cc_deleteall($component10);
cc_deleteall($component11);
def_struct $struct14 = enum(int, struct, enum_2670, %varbit10032);
def_int $colour15 = 0xff981f;
def_enum $enum16 = null;
def_struct $struct17 = null;
def_int $int18 = 0;
def_int $int19 = 0;
def_enum $enum20 = null;
if ($struct14 ! null) {
$enum16 = struct_param($struct14, param_870);
$colour15 = struct_param($struct14, param_1027);
}
cc_create($component0, ^iftype_graphic, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_light");
if_sethide(false, $component6);
if_sethide(true, $component7);
if_sethide(true, $component9);
if_sethide(true, $component8);
if ($enum16 ! null) {
$int18 = enum_getoutputcount($enum16);
}
def_int $int21 = 0;
~leagues_menu_button($component10, $int21, $component11, $component12);
$int21 = 0;
~league_create_dropdown($component10, $component11, $component12, $int21, 2);
if (cc_find(interface_655:2, $comsubid13) = ^true) {
cc_setcolour($colour15);
}
def_int $width22 = if_getwidth($component6);
def_int $int23 = calc(if_getheight($component6) - 5);
def_int $int24 = 0;
def_int $int25 = 0;
def_int $int26 = 0;
def_int $int27 = 0;
def_int $int28 = 0;
if ($int18 > 0) {
$int24 = calc($width22 / $int18);
$int27 = calc(($width22 - $int24 * $int18) / 2);
}
def_int $int29 = -1;
def_string $string0 = "";
def_int $int30 = 0;
def_int $int31 = 0;
def_int $colour32 = null;
def_int $colour33 = null;
def_int $colour34 = null;
def_int $colour35 = null;
def_int $trans36 = 0;
def_int $int37 = 0;
def_struct $struct38 = null;
def_graphic $graphic39 = null;
def_string $text1 = "";
def_int $int40 = -1;
def_struct $struct41 = null;
def_int $int42 = 0;
def_int $int43 = 0;
def_int $int44 = 0;
while ($int42 < $int18) {
$struct17 = enum(int, struct, $enum16, $int42);
$enum20 = struct_param($struct17, param_878);
switch_int ($int42) {
case 0 :
$int40 = %varbit10049;
case 1 :
$int40 = %varbit10050;
case 2 :
$int40 = %varbit10051;
case 3 :
$int40 = %varbit10052;
case 4 :
$int40 = %varbit10053;
case 5 :
$int40 = %varbit11696;
case default :
$int40 = 0;
}
$struct41 = enum(int, struct, $enum20, $int40);
if ($enum20 ! null & $struct41 ! null) {
cc_create($component1, ^iftype_graphic, $int42);
cc_setsize($int24, 0, ^setsize_abs, ^setsize_minus);
cc_setposition($int27, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_dark");
cc_settiling(true);
$int29, $string0, $int30, $int31, $int37, $colour33, $colour35 = 255, "", 1, 0, 1, 0xaaaaaa, 0xdddddd;
} else if ($int28 = 0 & $enum20 ! null & %var2615 >= struct_param($struct17, param_877)) {
cc_create($component1, ^iftype_graphic, $int42);
cc_setsize($int24, 0, ^setsize_abs, ^setsize_minus);
cc_setposition($int27, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_light");
cc_settiling(true);
$int29, $string0, $int30, $int31, $int37, $colour33, $colour35 = 127, "", 1, 1, 1, null, null;
$int28 = 1;
} else {
cc_create($component1, ^iftype_graphic, $int42);
cc_setsize($int24, 0, ^setsize_abs, ^setsize_minus);
cc_setposition($int27, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_dark");
cc_settiling(true);
$int29, $string0, $int30, $int31, $int37, $colour33, $colour35 = 255, "", 1, 0, 1, null, null;
}
cc_create($component0, ^iftype_text, calc($int42 + 1));
cc_setsize($int24, 0, ^setsize_abs, ^setsize_minus);
cc_setposition($int27, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour($colour15);
cc_settext("Tier <tostring(calc($int42 + 1))>");
if ($enum20 ! null) {
$int19 = enum_getoutputcount($enum20);
} else {
$int19 = 0;
}
if ($int19 > 0) {
$int25 = calc($int23 / $int19);
$int26 = calc(($int23 - $int25 * $int19) / 2);
}
$int43 = 0;
while ($int43 < $int19) {
$struct38 = enum(int, struct, $enum20, calc($int43 + 1));
cc_create($component4, ^iftype_text, $int44);
if (string_length($string0) > 0) {
$text1 = $string0;
} else {
$text1 = struct_param($struct38, param_879);
}
cc_setsize(calc($int24 - 10), 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int27 + 5), calc($int26 + $int25 / 2 + 1), ^setpos_abs_left, ^setpos_abs_top);
cc_settext($text1);
cc_settextfont(p11_full);
if ($struct38 ! $struct41) {
if ($colour33 ! null) {
$colour32 = $colour33;
} else {
$colour32 = $colour15;
}
if ($colour35 ! null) {
$colour34 = $colour35;
} else {
$colour34 = ^white;
}
} else {
$colour32, $colour34 = $colour15, ^white;
}
cc_setcolour($colour32);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_create($component2, ^iftype_graphic, $int44);
cc_setsize(30, 30, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int27 + $int24 / 2 - 15), calc($int26 + $int25 / 2 - 31), ^setpos_abs_left, ^setpos_abs_top);
if ($struct38 = $struct41) {
$graphic39, $trans36 = struct_param($struct38, param_881), 0;
} else {
$graphic39, $trans36 = struct_param($struct38, param_883), calc($int29 - 128);
}
cc_setgraphic($graphic39);
cc_create($component3, ^iftype_graphic, $int44);
cc_setsize(34, 34, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int27 + $int24 / 2 - 17), calc($int26 + $int25 / 2 - 33), ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic(struct_param($struct14, param_1026));
if ($int29 ! -1) {
cc_settrans($int29);
} else {
cc_settrans(255);
}
cc_create($component5, ^iftype_rectangle, $int44);
cc_setsize($int24, $int25, ^setsize_abs, ^setsize_abs);
cc_setposition($int27, $int26, ^setpos_abs_left, ^setpos_abs_top);
cc_setfill(true);
cc_settrans(255);
if ($int37 = 1) {
cc_setop(1, "View");
cc_setopbase("<col=ff981f><$text1></col>");
cc_setonop("league_relics_loading($component9, $int44, $component3, $int29, $component2, $graphic39, $component4, $colour32)");
}
if ($int30 = 1 & ~on_mobile = false) {
if ($int31 = 1) {
cc_setonmouserepeat("league_relic_hover($component3, $trans36, $component2, struct_param($struct38, param_881), $component4, $colour34, $int44)");
} else {
cc_setonmouserepeat("league_relic_hover($component3, $trans36, $component2, $graphic39, $component4, $colour34, $int44)");
}
cc_setonmouseleave("league_relic_hover($component3, $int29, $component2, $graphic39, $component4, $colour32, $int44)");
}
$int44 = calc($int44 + 1);
$int26 = calc($int26 + $int25);
$int43 = calc($int43 + 1);
}
$int27 = calc($int27 + $int24);
$int42 = calc($int42 + 1);
}
if ($int28 = 1) {
cc_deleteall($component0);
cc_create($component0, ^iftype_graphic, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_light");
cc_create($component0, ^iftype_text, 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour($colour15);
cc_settext("You have a new Relic available for selection!");
}