-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,script4424].cs2
79 lines (79 loc) · 3.09 KB
/
[clientscript,script4424].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
// 4424
[clientscript,script4424](enum $enum0, component $component1, component $component2, int $comsubid3, component $component4, component $component5, int $int6)
sound_synth(interface_select1, 1, 0);
~league_setup_display_hoverdisable($component2, $int6);
if_sethide(false, $component4);
if_setonclick("script4428(1, -1, $enum0, $component2, $comsubid3, $component4, $component5, $int6)", $component4);
def_int $int7 = calc(enum_getoutputcount($enum0) - 1);
if ($enum0 = enum_3795) {
$int7 = calc($int7 - 1);
}
def_int $int8 = 14;
if (~on_mobile = true) {
$int8 = 18;
}
def_int $int9 = calc($int7 * $int8);
cc_deleteall($component5);
~thinbox($component5, 0);
~script4427;
if_sethide(false, $component1);
def_int $int10 = 0;
.cc_create($component1, ^iftype_rectangle, $int10);
$int10 = calc($int10 + 1);
.cc_setsize(0, $int8, ^setsize_minus, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^white);
.cc_settrans(200);
.cc_sethide(true);
def_int $width11 = calc(if_getwidth($component2) - 30);
def_int $int12 = 0;
def_string $string0 = "";
def_graphic $graphic13 = null;
def_int $int14 = 0;
def_int $intarray0(enum_getoutputcount($enum0));
if (~script441($enum0) = 1) {
$int14 = 1;
}
while ($int12 < $int7) {
cc_create($component1, ^iftype_text, $int10);
cc_setposition(0, calc($int12 * $int8), ^setpos_abs_centre, ^setpos_abs_top);
cc_setsize(0, $int8, ^setsize_minus, ^setsize_abs);
cc_setcolour($int6);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_setop(1, "Select");
if (~on_mobile = false) {
cc_setonmouserepeat("league_setup_display_dropdown_hover(true, event_com, event_comsubid, .cc_getid, $int6)");
cc_setonmouseleave("league_setup_display_dropdown_hover(false, event_com, event_comsubid, .cc_getid, $int6)");
}
cc_setonop("script4428(event_opindex, $int12, $enum0, $component2, $comsubid3, $component4, $component5, $int6)");
if ($int14 = 1) {
$intarray0(calc($int10 - 1)) = $int10;
}
if ($enum0 = enum_3795) {
if (%varbit12165 = 1 & %varbit12164 = 3 & activeclansettings_find_listened = true | %varbit12165 = 0 & %varbit933 = 3 & activeclansettings_find_affined(0) = true) {
$string0, $graphic13 = ~script4302(enum(int, int, enum_3795, $int12));
} else {
$string0 = "Error";
}
} else {
$string0 = enum(int, string, $enum0, $int12);
}
cc_settext(~script4193($string0, $width11, p11_full));
$int12, $int10 = calc($int12 + 1), calc($int10 + 1);
}
if ($int14 = 1) {
~quicksort_cctext(intarray0, $component1, 0, $int7);
$int12 = 0;
while ($int12 < enum_getoutputcount($enum0)) {
if (cc_find($component1, $intarray0($int12)) = ^true) {
cc_setposition(0, calc($int12 * $int8 - $int8), ^setpos_abs_centre, ^setpos_abs_top);
}
$int12 = calc($int12 + 1);
}
}
cc_deleteall(interface_704:27);
~scrollbar_vertical(interface_704:27, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if_setscrollpos(0, 0, $component1);
~script4426($int9, null, 334, $component2, if_getwidth($component2), interface_704:27, $component1, $component5);