-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,audio_menu_createentry_indexed].cs2
34 lines (34 loc) · 1.26 KB
/
[proc,audio_menu_createentry_indexed].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
// 4199
[proc,audio_menu_createentry_indexed](string $string0, component $component0, int $width1, int $int2, int $height3, enum $enum4, string $string1, enum $enum5, int $int6)(int, int)
def_int $int7 = calc(paraheight($string0, $width1, p12_full) * 14 + 2);
if (~on_mobile = true) {
$int7 = scale(4, 3, $int7);
}
cc_create($component0, ^iftype_text, $int2);
cc_setposition(0, $height3, ^setpos_abs_centre, ^setpos_abs_top);
cc_setsize(0, $int7, ^setsize_minus, ^setsize_abs);
cc_settextfont(p12_full);
cc_setcolour(0x322805);
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, 0x524825)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, 0x322805)");
cc_settextalign(^settextalign_centre, ^settextalign_centre, 14);
if ($enum4 = null & $enum5 = null) {
cc_setop(1, "Select");
cc_setonop("audio_category_select($int2)");
} else {
switch_int ($int2) {
case 0 :
cc_setop(1, "Return");
cc_setonop("audio_tool(0)");
case 1 :
cc_setop(1, "Loop");
cc_setonop("audio_loop_click");
case default :
cc_setop(1, "Play");
cc_setonop("audio_synth_play($enum4, $int2, $string1, $enum5)");
}
}
$string0 = append("<col=735a28><tostring($int2)></col>: ", $string0);
cc_settext($string0);
$int2 = calc($int2 + 1);
return($int2, calc($height3 + $int7));