-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,settings_slider_on_transmit].cs2
49 lines (49 loc) · 1.49 KB
/
[clientscript,settings_slider_on_transmit].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
// 3863
[clientscript,settings_slider_on_transmit](struct $struct0, int $int1, int $int2, int $int3, int $int4, component $component5, int $comsubid6, int $y7, int $int8, int $int9, component $component10, int $comsubid11, string $string0, int $int12, enum $enum13, boolean $boolean14)
def_int $int15 = ~script3957($struct0);
def_int $int16 = ~settings_get_slider($int1);
def_string $string1 = "";
if (cc_find($component5, $comsubid6) = ^true) {
if ($int16 = 0) {
cc_setposition($int8, $y7, ^setpos_abs_left, ^setpos_abs_top);
} else if ($int16 = calc($int2 - 1)) {
cc_setposition(calc($int9 - 16), $y7, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_setposition(calc($int8 + scale($int16 * 2, ($int2 - 1) * 2, $int4 - 16)), $y7, ^setpos_abs_left, ^setpos_abs_top);
}
if ($int15 = 1) {
if ($boolean14 = true) {
cc_setgraphic("settings_slider,8");
} else {
cc_setgraphic("settings_slider,6");
}
} else {
cc_setgraphic("settings_slider,7");
}
}
if (cc_find($component10, $comsubid11) = ^true) {
if (struct_param($struct0, param_1158) = true) {
$string1 = ~script2364($int1);
}
cc_settext(append($string0, $string1));
if ($int15 = 1) {
cc_setcolour(0xff981f);
} else {
cc_setcolour(0x9f9f9f);
}
}
def_int $int17 = 0;
if ($enum13 ! null) {
$int17 = 0;
while ($int17 < $int3) {
if (cc_find($component10, $int12) = ^true) {
if ($int15 = 1) {
cc_setcolour(0xff981f);
} else {
cc_setcolour(0x9f9f9f);
}
}
$int12 = calc($int12 + 1);
$int17 = calc($int17 + 1);
}
}