-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,menu].cs2
31 lines (31 loc) · 1.38 KB
/
[clientscript,menu].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
// 217
[clientscript,menu](string $text0, string $string1, boolean $boolean0)
def_component $component1 = interface_187:0;
def_component $component2 = interface_187:3;
def_component $component3 = interface_187:2;
def_component $component4 = interface_187:1;
if (~on_mobile = true) {
$boolean0 = false;
}
if ($boolean0 = true) {
~chatdefault_stopinput;
}
~script219($component1, $component2, $component3, $text0, 33);
cc_deleteall($component4);
def_int $width5 = if_getwidth($component2);
def_int $int6 = 0;
def_int $height7 = 0;
def_int $index8 = string_indexof_string($string1, "|", 0);
def_string $string2 = "";
while ($index8 ! -1) {
$string2 = substring($string1, 0, $index8);
$int6, $height7 = ~menu_createentry($string2, $component2, $component4, $width5, $int6, $height7, $boolean0);
$string1 = substring($string1, calc($index8 + 1), string_length($string1));
$index8 = string_indexof_string($string1, "|", 0);
}
$int6, $height7 = ~menu_createentry($string1, $component2, $component4, $width5, $int6, $height7, $boolean0);
if_setscrollsize(0, $height7, $component2);
if_setscrollpos(0, 0, $component2);
if ($height7 > if_getheight($component2)) {
~scrollbar_vertical($component3, $component2, "scrollbar_parchment_dragger_v2,3", "scrollbar_parchment_dragger_v2,0", "scrollbar_parchment_dragger_v2,1", "scrollbar_parchment_dragger_v2,2", "scrollbar_parchment_v2,0", "scrollbar_parchment_v2,1");
}