-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,script3446].cs2
84 lines (84 loc) · 3.31 KB
/
[clientscript,script3446].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
// 3446
[clientscript,script3446](string $string0)
~script3449(interface_120:7);
if (~script2237 ! 0) {
if_sethide(false, interface_120:8);
if_setop(1, "Controls", interface_120:8);
~script1490(interface_120:8);
} else {
if_sethide(true, interface_120:8);
if_clearops(interface_120:8);
cc_deleteall(interface_120:8);
}
cc_deleteall(interface_120:5);
def_int $int0 = 0;
while ($int0 < 50) {
cc_create(interface_120:5, ^iftype_rectangle, $int0);
cc_sethide(true);
$int0 = calc($int0 + 1);
}
def_int $intarray0(50);
def_int $int1 = 0;
def_string $string1 = "";
$string1, $string0 = ~script632($string0);
while ($int1 < 50 & string_length($string1) > 0) {
cc_create(interface_120:5, ^iftype_text, $int0);
$intarray0($int1) = $int0;
cc_setsize(0, 22, ^setsize_minus, ^setsize_abs);
cc_setcolour(0xff891f);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($string1);
if (.cc_find(interface_120:5, calc($int0 - 50)) = ^true) {
.cc_setopbase("<col=ff9040><$string1></col>");
.cc_setop(1, "Seek");
.cc_sethide(false);
.cc_setsize(0, 22, ^setsize_minus, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^white);
}
$int0, $int1, $string1, $string0 = calc($int0 + 1), calc($int1 + 1), ~script632($string0);
}
if ($int1 <= 0) {
cc_create(interface_120:5, ^iftype_text, $int0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_top);
cc_setcolour(0xff891f);
cc_settextfont(b12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("No eligible players were found.");
} else if ($int1 >= 2) {
~quicksort_cctext(intarray0, interface_120:5, 0, calc($int1 - 1));
}
def_int $height2 = 0;
$int0 = 0;
while ($int0 < $int1) {
if (cc_find(interface_120:5, $intarray0($int0)) = ^true & .cc_find(interface_120:5, calc($intarray0($int0) - 50)) = ^true) {
cc_setposition(0, $height2, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, $height2, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 200, null)");
if (calc($int0 % 2) = 0) {
.cc_settrans(230);
.cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 230, null)");
.cc_setonop("script3447(event_opindex, event_com, event_comsubid, 230)");
} else {
.cc_settrans(245);
.cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 245, null)");
.cc_setonop("script3447(event_opindex, event_com, event_comsubid, 245)");
}
}
$int0, $height2 = calc($int0 + 1), calc($height2 + 22);
}
cc_deleteall(interface_120:6);
def_int $height3 = if_getheight(interface_120:5);
if ($height2 > $height3) {
if_setscrollsize(0, $height2, interface_120:5);
~scrollbar_vertical(interface_120:6, interface_120:5, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
~scrollbar_resize(interface_120:6, interface_120:5, ~max(0, ~min(calc($height2 - $height3), if_getscrolly(interface_120:5))));
} else {
if_setscrollpos(0, 0, interface_120:5);
if_setscrollsize(0, 0, interface_120:5);
~scrollbar_vertical(interface_120:6, interface_120:5, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
}