-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,script6522].cs2
48 lines (48 loc) · 1.87 KB
/
[clientscript,script6522].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
// 6522
[clientscript,script6522](int $int0, component $component1, component $component2, component $component3)
sound_synth(interface_select1, 1, 0);
~xpdrops_setup_display_hoverdisable($component1);
if_sethide(false, $component2);
if_setonrelease("script6307(calc(clientclock + 10), $component1, $component2)", $component2);
def_boolean $boolean4 = ~on_mobile;
def_int $int5 = 17;
if ($boolean4 = true) {
$int5 = scale(8, 5, $int5);
}
cc_deleteall($component3);
.cc_create($component3, ^iftype_rectangle, 0);
.cc_setsize(0, calc($int5 + 2), ^setsize_minus, ^setsize_abs);
.cc_setfill(true);
.cc_setcolour(^white);
.cc_settrans(200);
.cc_sethide(true);
def_int $count6 = enum_getoutputcount(enum_4389);
def_int $int7 = 0;
def_int $int8 = -1;
def_int $count9 = 0;
while ($count9 < $count6) {
cc_create($component3, ^iftype_text, calc($count9 + 1));
$int8 = enum(int, int, enum_4389, $count9);
if ($int0 = 2 & $int8 = 2) {
cc_sethide(true);
} else {
cc_sethide(false);
cc_setsize(0, $int5, ^setsize_minus, ^setsize_abs);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_setop(1, "Select");
if ($boolean4 = false) {
cc_setonmouseover("xpdrops_setup_display_dropdown_hover(true, event_com, event_comsubid, .cc_getid, 0xff981f)");
cc_setonmouseleave("xpdrops_setup_display_dropdown_hover(false, event_com, event_comsubid, .cc_getid, 0xff981f)");
}
cc_setonop("script6523(event_op, event_comsubid, $int0, $component1, $component2, $component3)");
cc_setposition(0, calc($int7 * $int5 + 2), ^setpos_abs_centre, ^setpos_abs_top);
cc_settext(enum(int, string, enum_4208, $int8));
$int7 = calc($int7 + 1);
}
$count9 = calc($count9 + 1);
}
~thinstonebox($component3, calc($count9 + 1));
if_setsize(if_getwidth($component3), calc($int7 * $int5 + 2 + 4), ^setsize_abs, ^setsize_abs, $component3);