-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script3726].cs2
45 lines (45 loc) · 1.62 KB
/
[proc,script3726].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
42
43
44
45
// 3726
[proc,script3726](component $component0, int $int1, string $string0, int $int2, int $int3)(int)
def_graphic $graphic4 = "graphic_2564";
def_graphic $graphic5 = "graphic_2565";
if ($int1 = 1) {
$int2 = $int3;
} else if ($int1 = 0) {
$graphic4, $graphic5 = "graphic_2566", "graphic_2567";
} else if ($int1 = 2) {
$graphic4, $graphic5 = "graphic_2568", "graphic_2569";
}
cc_deleteall($component0);
cc_create($component0, ^iftype_graphic, 0);
cc_setsize(20, 21, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic4);
cc_create($component0, ^iftype_graphic, 1);
cc_setsize(40, 21, ^setsize_minus, ^setsize_abs);
cc_setposition(20, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic5);
cc_settiling(true);
cc_create($component0, ^iftype_graphic, 2);
cc_setsize(20, 21, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_top);
cc_setgraphic($graphic4);
cc_sethflip(true);
if ($int1 = 1) {
if_setonmouserepeat(null, $component0);
if_setonmouseleave(null, $component0);
} else if (~on_mobile = false) {
if_setonmouserepeat("script3724($component0, 2, $string0, $int2, $int3)", $component0);
if_setonmouseleave("script3724($component0, 0, $string0, $int2, $int3)", $component0);
}
if (string_length($string0) > 0) {
cc_create($component0, ^iftype_text, 3);
cc_setsize(0, 19, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 1, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($string0);
cc_setcolour($int2);
return(4);
}
return(3);