-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,prayer_infobutton].cs2
24 lines (24 loc) · 1.14 KB
/
[proc,prayer_infobutton].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
// 2758
[proc,prayer_infobutton](string $string0, boolean $boolean0, string $string1, boolean $boolean1, component $component2, int $int3, int $int4, component $component5, component $component6, component $component7)
if_sethide($boolean0, $component6);
~deltooltip_action($component7);
%varcint218 = null;
cc_deleteall($component5);
def_int $comsubid8 = 0;
if ($boolean0 = true) {
$comsubid8 = ~options_button_off($component5, 0);
} else {
$comsubid8 = ~options_button_on($component5, 0);
}
cc_create($component5, ^iftype_text, $comsubid8);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settext("Info");
cc_setcolour(0xff981f);
if_setonmouserepeat("cc_colour_swapper(event_com, cc_getid, ^white)", $component5);
if_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xff981f)", $component5);
if_setop(1, $string0, $component5);
if_setonop("prayer_infomode($string0, $boolean0, $string1, $boolean1, $component2, $int3, $int4, event_com, $component6, $component7)", $component5);