-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,poh_board_redraw].cs2
224 lines (224 loc) · 7.85 KB
/
[proc,poh_board_redraw].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
217
218
219
220
221
222
223
224
// 3113
[proc,poh_board_redraw]
%varcint377 = 0;
def_int $int0 = 0;
def_string $string0 = "";
def_int $int1 = 0;
def_int $int2 = 0;
def_int $int3 = 255;
def_int $int4 = 25;
def_int $intarray0(200);
def_int $int5 = 0;
def_int $int6 = 0;
$int0 = 0;
while ($int6 = 0 & $int0 <= 200) {
if (cc_find(interface_52:9, $int0) = ^true) {
if (string_length(cc_gettext) > 0) {
$intarray0($int5) = $int0;
$int5 = calc($int5 + 1);
}
} else {
$int6 = 1;
}
$int0 = calc($int0 + 1);
}
if ($int5 >= 2) {
switch_int (%varcint379) {
case 0, 1 :
~quicksort_cctext(intarray0, interface_52:9, 0, calc($int5 - 1));
case 4, 5 :
~quicksort_cctext(intarray0, interface_52:35, 0, calc($int5 - 1));
case 6, 7 :
~quicksort_cctext(intarray0, interface_52:36, 0, calc($int5 - 1));
case 8, 9 :
~quicksort_cctext(intarray0, interface_52:37, 0, calc($int5 - 1));
case 10, 11 :
~quicksort_cctext(intarray0, interface_52:38, 0, calc($int5 - 1));
case 12, 13 :
~quicksort_cctext(intarray0, interface_52:39, 0, calc($int5 - 1));
case 14, 15 :
~quicksort_cctext(intarray0, interface_52:40, 0, calc($int5 - 1));
case default :
if (%varcint379 ! 2) {
%varcint379 = 3;
}
~quicksort_cctext(intarray0, interface_52:12, 0, calc($int5 - 1));
}
}
if (~on_mobile = true) {
$int4 = 35;
}
def_boolean $boolean7 = false;
switch_int (%varcint379) {
case 1, 3, 5, 7, 9, 11, 13, 15 :
$int1 = $int5;
while ($int1 > 0) {
$int1 = calc($int1 - 1);
if (cc_find(interface_52:9, $intarray0($int1)) = ^true & .cc_find(interface_52:10, $intarray0($int1)) = ^true) {
if (string_length(cc_gettext) = 0 | %varbit9448 = 1 & compare(~poh_board_loc(tostring(%varbit9449)), .cc_gettext) ! 0) {
$boolean7 = true;
} else {
$boolean7 = false;
%varcint377 = calc(%varcint377 + 1);
}
}
if (cc_find(interface_52:9, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:12, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:13, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:14, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:15, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:16, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:17, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:18, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:35, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:36, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:37, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:38, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:39, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:40, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:19, $intarray0($int1)) = ^true & .cc_find(interface_52:10, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, calc($int2 + 2), ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
if ($boolean7 = true) {
cc_sethide(true);
.cc_sethide(true);
} else if (compare(~poh_board_loc(tostring(%varbit9449)), .cc_gettext) = 0) {
cc_sethide(false);
.cc_sethide(true);
} else {
cc_sethide(true);
.cc_sethide(false);
}
}
if ($boolean7 = false) {
$int2 = calc($int2 + $int4);
}
}
case default :
while ($int1 < $int5) {
if (cc_find(interface_52:9, $intarray0($int1)) = ^true & .cc_find(interface_52:10, $intarray0($int1)) = ^true) {
if (string_length(cc_gettext) = 0 | %varbit9448 = 1 & compare(~poh_board_loc(tostring(%varbit9449)), .cc_gettext) ! 0) {
$boolean7 = true;
} else {
$boolean7 = false;
%varcint377 = calc(%varcint377 + 1);
}
}
if (cc_find(interface_52:9, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:12, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:13, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:14, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:15, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:16, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:17, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:18, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide($boolean7);
}
if (cc_find(interface_52:35, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:36, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:37, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:38, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:39, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:40, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
cc_sethide(true);
}
if (cc_find(interface_52:19, $intarray0($int1)) = ^true & .cc_find(interface_52:10, $intarray0($int1)) = ^true) {
cc_setposition(cc_getx, calc($int2 + 2), ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(cc_getx, $int2, ^setpos_abs_left, ^setpos_abs_top);
if ($boolean7 = true) {
cc_sethide(true);
.cc_sethide(true);
} else if (compare(~poh_board_loc(tostring(%varbit9449)), .cc_gettext) = 0) {
cc_sethide(false);
.cc_sethide(true);
} else {
cc_sethide(true);
.cc_sethide(false);
}
}
if ($boolean7 = false) {
$int2 = calc($int2 + $int4);
}
$int1 = calc($int1 + 1);
}
}