-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,cws_init].cs2
33 lines (33 loc) · 1.64 KB
/
[clientscript,cws_init].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
// 1435
[clientscript,cws_init](component $component0, component $component1, component $component2, component $component3, string $op0, string $op1)
def_int $int4 = %varbit14801;
cc_deleteall($component0);
cc_create($component0, ^iftype_rectangle, 0);
.cc_create($component0, ^iftype_rectangle, 1);
cc_sethide(true);
.cc_sethide(true);
~cws_init_button($component1, $op0);
if_setonop("script1437($component0, 1)", $component1);
~cws_init_button($component2, $op1);
if_setonop("script1437($component0, 0)", $component2);
cc_deleteall($component3);
cc_create($component3, ^iftype_rectangle, 0);
def_int $comsubid5 = cc_getid;
cc_sethide(true);
def_string $string2 = "Don't ask me this again";
cc_create($component3, ^iftype_graphic, 1);
cc_setsize(19, 19, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_centre);
.cc_create($component3, ^iftype_text, 2);
.cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
.cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
.cc_setcolour(0xff981f);
.cc_settextfont(p12_full);
.cc_settextshadow(true);
.cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
.cc_settext($string2);
if_setonmouserepeat("cc_colour_swapper(event_com, .cc_getid, ^white)", $component3);
if_setonmouseleave("cc_colour_swapper(event_com, .cc_getid, 0xff981f)", $component3);
if_setsize(calc(parawidth($string2, if_getwidth($component0), p12_full) + 26), if_getheight($component3), ^setsize_abs, ^setsize_abs, $component3);
~cws_set_toggle($component3, $int4, $comsubid5, ~cws_cc_getvar($int4));
if_setonvartransmit("cws_set_toggle($component3, cc_getid, $int4, $comsubid5){var1045, var1046, var1047, var2768}", $component3);