forked from RuneStar/cs2-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[proc,script1500].cs2
32 lines (32 loc) · 1.17 KB
/
[proc,script1500].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
// 1500
[proc,script1500](component $component0)
def_string $op0 = "Enable (1 coin)";
if (%varbit5411 = 0 | %varbit5412 <= 0) {
cc_setcolour(0x9f9f9f);
cc_settext("Off");
if_setonmouserepeat("cc_colour_swapper(event_com, cc_getid, ^white)", $component0);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0x9f9f9f)", $component0);
if (%varbit5412 > 0) {
if (%varbit5412 > 1) {
$op0 = "Enable (<~tostring_spacer(%varbit5412, ",")> coins)";
}
if_setop(1, $op0, $component0);
} else {
if_setop(1, "Enable", $component0);
}
if_setop(2, "", $component0);
if_setonop("script1501(event_opindex, false, %varbit5412, $component0, cc_getid)", $component0);
} else {
cc_setcolour(0xff981f);
if (%varbit5412 ! 1) {
cc_settext("<~tostring_spacer(%varbit5412, ",")> coins");
} else {
cc_settext("1 coin");
}
if_setop(1, "Disable", $component0);
if_setop(2, "Change", $component0);
if_setonmouserepeat("cc_colour_swapper(event_com, cc_getid, ^white)", $component0);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component0);
if_setonop("script1501(event_opindex, true, 0, $component0, cc_getid)", $component0);
}
if_setontimer(null, $component0);