-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,menu_createentry].cs2
33 lines (33 loc) · 1.42 KB
/
[proc,menu_createentry].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
// 218
[proc,menu_createentry](string $string0, component $component0, component $component1, int $width2, int $int3, int $height4, int $int5)(int, int)
def_int $int6 = calc(paraheight($string0, $width2, p12_full) * 14 + 2);
if (~on_mobile = true) {
$int6 = scale(4, 3, $int6);
}
cc_create($component0, ^iftype_text, $int3);
.cc_create($component1, ^iftype_rectangle, $int3);
cc_setposition(0, $height4, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(0, $int6, ^setsize_minus, ^setsize_abs);
.cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settextfont(p12_full);
cc_setcolour(0x46320a);
cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, 0x76623a)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, 0x46320a)");
cc_settextalign(^settextalign_centre, ^settextalign_centre, 14);
cc_settext($string0);
def_string $string1 = "";
def_string $string2 = "";
$int3 = calc($int3 + 1);
if ($int5 = 1 & $int3 < 36) {
if ($int3 < 10) {
$string1 = tostring($int3);
} else {
$string1 = enum(int, string, enum_1401, calc($int3 - 9));
$string2 = enum(int, string, enum_1402, calc($int3 - 9));
}
$string0 = append("<col=735a28><$string1></col>: ", $string0);
.cc_setonkey("chatbox_keyinput_listener(event_key, event_keychar, $component0, cc_getid, null, null, $string1, $string2, 4600330, 0)");
}
cc_settext($string0);
return($int3, calc($height4 + $int6));