-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,stonebutton_url_draw].cs2
31 lines (31 loc) · 1.17 KB
/
[proc,stonebutton_url_draw].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
// 1086
[proc,stonebutton_url_draw](boolean $boolean0, boolean $boolean1, component $component2, string $string0, string $string1)
def_int $comsubid3 = 0;
if ($boolean0 = true | $boolean1 = false) {
$comsubid3 = ~v2_stone_button_in_filled($component2);
} else {
$comsubid3 = ~v2_stone_button_out_filled($component2);
}
cc_create($component2, ^iftype_text, $comsubid3);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
if ($boolean1 = false) {
cc_setcolour(^white);
} else if ($boolean0 = true) {
cc_setcolour(0xffa82f);
} else {
cc_setcolour(0xff981f);
}
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($string0);
if ($boolean1 = true) {
if_setonmouseover("stonebutton_url_draw(true, true, $component2, $string0, $string1)", $component2);
if_setonmouseleave("stonebutton_url_draw(false, true, $component2, $string0, $string1)", $component2);
if_setonclick("stonebutton_url_click($component2, $string0, $string1)", $component2);
} else {
if_setonmouserepeat(null, $component2);
if_setonmouseleave(null, $component2);
if_setonclick(null, $component2);
}