-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script1391].cs2
41 lines (41 loc) · 1.46 KB
/
[proc,script1391].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
35
36
37
38
39
40
41
// 1391
[proc,script1391](component $component0, int $int1, string $string0, int $int2, int $int3, int $int4, int $int5)(int)
def_int $int6 = calc(parawidth($string0, 512, p11_full) + 10);
if_setsize($int6, if_getheight($component0), ^setsize_abs, ^setsize_abs, $component0);
cc_deleteall($component0);
def_int $comsubid7 = 0;
if ($int1 = $int2) {
$comsubid7 = ~options_button_on($component0, 0);
} else {
$comsubid7 = ~options_button_off($component0, 0);
}
cc_create($component0, ^iftype_text, $comsubid7);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($string0);
if ($int1 = $int2) {
if ($int1 = $int5) {
cc_setcolour(^yellow);
} else {
cc_setcolour(^white);
}
if_setonmouserepeat(null, $component0);
if_setonmouseleave(null, $component0);
if_setonop(null, $component0);
if_clearops($component0);
} else {
if ($int1 = $int5) {
cc_setcolour(^yellow);
if_setonmouseleave("cc_colour_swapper(event_com, $comsubid7, ^yellow)", $component0);
} else {
cc_setcolour(0xff981f);
if_setonmouseleave("cc_colour_swapper(event_com, $comsubid7, 0xff981f)", $component0);
}
if_setonmouserepeat("cc_colour_swapper(event_com, $comsubid7, ^white)", $component0);
if_setonop("poh_viewer_setlevel(true, $int1, $int3, $int4)", $component0);
if_setop(1, $string0, $component0);
}
return($int6);