-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,emote_init].cs2
37 lines (37 loc) · 1.47 KB
/
[clientscript,emote_init].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
// 699
[clientscript,emote_init](component $component0, component $component1, component $component2, component $component3)
cc_deleteall($component1);
cc_deleteall($component2);
def_string $string0 = "";
def_int $int4 = 0;
def_int $height5 = 0;
def_int $int6 = 0;
while ($int6 <= 50) {
cc_create($component1, ^iftype_graphic, $int6);
if (enum(int, graphic, enum_1001, $int6) ! null) {
cc_sethide(false);
cc_setsize(42, 48, ^setsize_abs, ^setsize_abs);
$height5 = calc($int4 / 4 * 49 + 6);
cc_setposition(calc($int4 % 4 * 43), $height5, ^setpos_abs_left, ^setpos_abs_top);
$string0 = enum(int, string, enum_1000, $int6);
cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component3, $string0, 25, 120)");
cc_setonmouseleave("deltooltip($component3)");
$int4 = calc($int4 + 1);
} else {
cc_sethide(true);
}
$int6 = calc($int6 + 1);
}
if ($int4 > 0) {
$height5 = calc($height5 + 48);
}
if_setscrollpos(0, 0, $component1);
if ($height5 > if_getheight($component1)) {
if_setscrollsize(0, $height5, $component1);
} else {
if_setscrollsize(0, 0, $component1);
}
~scrollbar_vertical($component2, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
~emote_update($component1);
if_setonvartransmit("emote_update($component1){var313, var802, var465, var101, var904, var1336, var2886}", $component0);
if_setonstattransmit("emote_update($component1)", $component0);