-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,chatbox_init].cs2
52 lines (52 loc) · 2.64 KB
/
[clientscript,chatbox_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
// 925
[clientscript,chatbox_init]
%varcint980 = clientclock;
~chatdefault_setonkey(1);
if_setonvartransmit("script924{var1054, var1055, var1021, var499, var1737, var2992, var2993, var2994, var2995, var2996, var2997, var2998, var2999, var3060, var3191, var3192, var3193, var3000, var3001, var3002, var3003, var3004, var3005, var3006, var3007, var3061, var3194, var3195, var3196, var3008, var3009}", interface_162:0);
if_setonsubchange("chat_onsubchange(event_com, getwindowmode, if_hassub(interface_162:565), if_hassub(interface_162:564), ~toplevel_getcomponents)", interface_162:0);
if_setonchattransmit("chat_onchattransmit", interface_162:0);
if_setonfriendtransmit("chat_onchattransmit", interface_162:0);
if_setonclantransmit("rebuildchatbox", interface_162:0);
if_setonclansettingstransmit("rebuildchatbox", interface_162:0);
if_setonmisctransmit("script664(true)", interface_162:0);
%varcstring335, %varcint42 = "", -1;
if (%varcint41 >= 0 & %varcint41 <= 6 | %varcint41 = 1337) {
%varcint41 = %varcint41;
} else {
%varcint41 = 0;
}
%varcint3, %varcint4 = -1, 0;
%varcstring336, %varcstring337, %varcstring338, %varcstring339, %varcstring340, %varcstring341, %varcstring342, %varcstring343, %varcstring344, %varcstring345, %varcstring346, %varcstring347, %varcstring348, %varcstring349, %varcstring350, %varcstring351, %varcstring352, %varcstring353, %varcstring354, %varcstring355 = "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "";
%varcstring356, %varcstring357 = "", "";
%varcint55 = ^min_32bit_int;
%varcstring358, %varcint62 = "", 0;
def_int $int0 = 0;
def_component $component1 = enum(int, component, enum_579, $int0);
while ($component1 ! null) {
cc_create(interface_162:56, ^iftype_text, calc($int0 * 4));
.cc_create(interface_162:56, ^iftype_text, calc($int0 * 4 + 1));
cc_setcolour(^black);
.cc_setcolour(^black);
cc_settextfont(p12_full);
.cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_top, 14);
.cc_settextalign(^settextalign_left, ^settextalign_top, 14);
cc_sethide(true);
.cc_sethide(true);
cc_create(interface_162:56, ^iftype_text, calc($int0 * 4 + 2));
.cc_create(interface_162:56, ^iftype_graphic, calc($int0 * 4 + 3));
cc_setcolour(^black);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_top, 14);
cc_sethide(true);
.cc_sethide(true);
$int0 = calc($int0 + 1);
$component1 = enum(int, component, enum_579, $int0);
}
if_setscrollpos(0, 0, interface_162:56);
~scrollbar_vertical(interface_162:557, interface_162:56, null, null, null, null, null, null);
~toplevel_chatbox_background;
chat_setmessagefilter("");
~script223;
~redraw_chat_buttons;
~rebuildchatbox(~script553);