-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,script581].cs2
47 lines (47 loc) · 1.37 KB
/
[proc,script581].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
// 581
[proc,script581](enum $enum0, component $component1, component $component2, component $component3, int $int4)
def_int $int5 = 0;
if ($component1 = $component2) {
$int5 = 3;
}
def_int $int6 = ~script572($enum0);
def_int $int7 = 0;
def_int $int8 = $int4;
while ($int8 > 0) {
$int8 = calc($int8 - 1);
if ($int8 = $int6) {
if (cc_find($component2, calc($int8 * 3 + $int5)) = ^true) {
cc_setonop(null);
}
if (cc_find($component2, calc($int8 * 3 + $int5 + 1)) = ^true) {
cc_setgraphic("options_radio_buttons,2");
}
if (cc_find($component2, calc($int8 * 3 + $int5 + 2)) = ^true) {
cc_setcolour(^white);
}
$int7 = calc($int8 * 17);
} else {
if (cc_find($component2, calc($int8 * 3 + $int5)) = ^true) {
cc_setonop("script579(event_opindex, $int8, $enum0, $component1, $component2, $component3, $int4)");
}
if (cc_find($component2, calc($int8 * 3 + $int5 + 1)) = ^true) {
cc_setgraphic("options_radio_buttons,0");
}
if (cc_find($component2, calc($int8 * 3 + $int5 + 2)) = ^true) {
cc_setcolour(0xff981f);
}
}
}
if ($component3 = null) {
return;
}
def_int $int9 = 0;
def_int $y10 = if_getscrolly($component2);
if ($int7 < $y10) {
~scrollbar_resize($component3, $component2, $int7);
} else {
$int7, $int9 = calc($int7 + 17), if_getheight($component2);
if ($int7 > calc($y10 + $int9)) {
~scrollbar_resize($component3, $component2, calc($int7 - $int9));
}
}