-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,highlight_button].cs2
34 lines (34 loc) · 1.05 KB
/
[proc,highlight_button].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
// 3419
[proc,highlight_button](component $component0, int $int1, string $op0, boolean $boolean2)
cc_deleteall($component0);
def_int $comsubid3 = 0;
if ($int1 = 0) {
$comsubid3 = ~v2_stone_button_filled($component0);
} else {
$comsubid3 = ~v2_stone_button_in_filled($component0);
}
cc_create($component0, ^iftype_text, $comsubid3);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
if ($int1 = 0) {
cc_setcolour(^white);
} else {
cc_setcolour(0xaaaaaa);
}
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($op0);
if ($int1 = 0) {
cc_setop(1, $op0);
cc_setonop("highlight_next($boolean2, $component0, event_comsubid)");
if (~on_mobile = false) {
if_setonmouserepeat("v2_stone_button_change_in(event_com, 0)", $component0);
if_setonmouseleave("v2_stone_button_change_out(event_com, 0)", $component0);
}
} else {
cc_setop(1, "");
cc_setonop(null);
if_setonmouserepeat(null, $component0);
if_setonmouseleave(null, $component0);
}