-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,tournament_supplies_drawlist].cs2
62 lines (62 loc) · 1.84 KB
/
[proc,tournament_supplies_drawlist].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
// 967
[proc,tournament_supplies_drawlist](component $component0, component $component1, string $string0, int $int2, int $int3)
def_int $int4 = 1;
if (string_length($string0) > 0) {
$int4 = 0;
}
def_int $int5 = 0;
def_int $height6 = 0;
def_int $int7 = 0;
def_enum $enum8 = enum_1124;
if (~wildwars_world = 1) {
$enum8 = enum_1735;
}
def_int $int9 = ~tournament_beta_world;
def_namedobj $namedobj10 = enum(int, namedobj, $enum8, $int7);
while ($namedobj10 ! null) {
if (cc_find($component0, $int7) = ^true) {
if ($int4 = 1 | string_indexof_string(lowercase(oc_name($namedobj10)), $string0, 0) ! -1) {
cc_sethide(false);
$height6 = calc($int5 / 10 * $int3);
cc_setposition(calc($int5 % 10 * (36 + $int2)), $height6, ^setpos_abs_left, ^setpos_abs_top);
$int5 = calc($int5 + 1);
} else {
cc_sethide(true);
}
}
$int7 = calc($int7 + 1);
$namedobj10 = enum(int, namedobj, $enum8, $int7);
}
def_int $int11 = 0;
if ($int9 = 1) {
$namedobj10 = enum(int, namedobj, enum_1906, $int11);
while ($namedobj10 ! null) {
if (cc_find($component0, $int7) = ^true) {
if ($int4 = 1 | string_indexof_string(lowercase(oc_name($namedobj10)), $string0, 0) ! -1) {
cc_sethide(false);
$height6 = calc($int5 / 10 * $int3);
cc_setposition(calc($int5 % 10 * (36 + $int2)), $height6, ^setpos_abs_left, ^setpos_abs_top);
$int5 = calc($int5 + 1);
} else {
cc_sethide(true);
}
}
$int7 = calc($int7 + 1);
$int11 = calc($int11 + 1);
$namedobj10 = enum(int, namedobj, enum_1906, $int11);
}
}
if (cc_find($component0, $int7) = ^true) {
if ($int5 > 0) {
cc_sethide(true);
} else {
cc_sethide(false);
}
}
$height6 = calc($height6 + 32);
if ($height6 > if_getheight($component0)) {
if_setscrollsize(0, $height6, $component0);
} else {
if_setscrollsize(0, 0, $component0);
}
~scrollbar_resize($component1, $component0, if_getscrolly($component0));