-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,emote_init].cs2
54 lines (54 loc) · 2.02 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// 699
[clientscript,emote_init](component $component0, component $component1, component $component2, component $component3, component $component4)
cc_deleteall($component1);
cc_deleteall($component3);
def_int $int5 = 0;
def_int $height6 = 0;
def_int $int7 = 0;
def_int $int8 = calc(if_getwidth($component1) / 4);
while ($int7 <= 51) {
cc_create($component1, ^iftype_rectangle, $int7);
if (enum(int, graphic, enum_1001, $int7) ! null) {
cc_sethide(false);
cc_setcolour(^black);
cc_settrans(255);
cc_setsize($int8, 48, ^setsize_abs, ^setsize_abs);
$height6 = calc($int5 / 4 * 49 + 6);
cc_setposition(calc($int5 % 4 * $int8), $height6, ^setpos_abs_left, ^setpos_abs_top);
cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component4, ~emote_get_name($int7), 25, 120)");
cc_setonmouseleave("deltooltip($component4)");
$int5 = calc($int5 + 1);
} else {
cc_sethide(true);
}
$int7 = calc($int7 + 1);
}
$int7 = 0;
$height6 = 0;
$int5 = 0;
while ($int7 <= 51) {
cc_create($component1, ^iftype_graphic, calc(51 + $int7 + 1));
if (enum(int, graphic, enum_1001, $int7) ! null) {
cc_sethide(false);
cc_setsize(48, 48, ^setsize_abs, ^setsize_abs);
$height6 = calc($int5 / 4 * 49 + 6);
cc_setposition(calc($int5 % 4 * $int8), $height6, ^setpos_abs_left, ^setpos_abs_top);
$int5 = calc($int5 + 1);
} else {
cc_sethide(true);
}
$int7 = calc($int7 + 1);
}
if ($int5 > 0) {
$height6 = calc($height6 + 48);
}
if_setscrollpos(0, 0, $component2);
if ($height6 > if_getheight($component2)) {
if_setscrollsize(0, $height6, $component2);
} else {
if_setscrollsize(0, 0, $component2);
}
~scrollbar_vertical($component3, $component2, "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, $component4);
if_setonvartransmit("emote_update($component1, $component4){var313, var802, var465, var101, var904, var1336, var2886}", $component0);
if_setonstattransmit("emote_update($component1, $component4)", $component0);