-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,toplevel_chatbox_background].cs2
141 lines (141 loc) · 5.18 KB
/
[proc,toplevel_chatbox_background].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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// 923
[proc,toplevel_chatbox_background]
cc_deleteall(interface_162:2);
def_boolean $boolean0 = false;
if (%varcint41 = 1337 | %varbit542 = 1 & getwindowmode ! ^windowmode_fixed) {
if (~toplevel_chatbox_permittransparent = 1) {
$boolean0 = true;
} else if (getwindowmode = ^windowmode_fixed) {
%varcint41 = 0;
~chat_alert_set(0, 0);
}
}
if_sethide($boolean0, interface_162:34);
if (%varbit6374 = 1 & getwindowmode ! ^windowmode_fixed) {
if_setposition(1, 0, ^setpos_abs_right, ^setpos_abs_top, interface_162:56);
if_setposition(-1, 0, ^setpos_abs_left, ^setpos_abs_top, interface_162:557);
} else {
if_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top, interface_162:56);
if_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_top, interface_162:557);
}
cc_deleteall(interface_162:35);
cc_deleteall(interface_162:54);
def_int $int1 = 0;
if (clientclock < %varcint223 & ~toplevel_getcomponents ! enum_1129) {
$int1 = 1;
if_setontimer("toplevel_chatbox_resetbackground_soon(%varcint223)", interface_162:35);
} else {
if_setontimer(null, interface_162:35);
}
if (~toplevel_chatbox_maketransparent = 0) {
if_setnoclickthrough(true, interface_162:35);
if ($int1 = 0) {
cc_create(interface_162:35, ^iftype_graphic, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("chat_background");
cc_settiling(false);
cc_settrans(0);
cc_create(interface_162:54, ^iftype_rectangle, 0);
cc_setsize(0, 1, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 15, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setcolour(0x807660);
cc_setfill(true);
}
~scrollbar_vertical_repaint(interface_162:557, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1", 0);
if (~toplevel_chatbox_controls_maketransparent = 1) {
if_settrans(255, interface_162:3);
} else {
if_settrans(0, interface_162:3);
}
return;
}
def_int $int2 = calc(16384 / 25);
def_int $int3 = 16384;
if (%varbit2570 = 1) {
if_setnoclickthrough(true, interface_162:35);
} else {
if_setnoclickthrough(false, interface_162:35);
if_setnoscrollthrough(true, interface_162:35);
}
def_int $int4 = 0;
if ($int1 = 0) {
if (~on_enhanced = 1) {
while ($int4 < 20) {
cc_create(interface_162:35, ^iftype_rectangle, $int4);
cc_setsize(0, $int3, ^setsize_minus, ^setsize_2);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setcolour(^black);
cc_setfill(true);
cc_settrans(252);
$int4, $int3 = calc($int4 + 1), calc($int3 - $int2);
}
cc_create(interface_162:54, ^iftype_rectangle, 0);
.cc_create(interface_162:54, ^iftype_rectangle, 1);
cc_setsize(16384, 1, ^setsize_2, ^setsize_abs);
.cc_setsize(16384, 1, ^setsize_2, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(0, 15, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setcolour(^white);
.cc_setcolour(^white);
cc_setfill(true);
.cc_setfill(true);
cc_settrans(100);
.cc_settrans(120);
} else if (~on_mobile = false) {
while ($int4 < 20) {
cc_create(interface_162:35, ^iftype_rectangle, $int4);
cc_setsize(0, $int3, ^setsize_minus, ^setsize_2);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setcolour(^black);
cc_setfill(true);
cc_settrans(254);
cc_create(interface_162:54, ^iftype_rectangle, calc($int4 * 2));
.cc_create(interface_162:54, ^iftype_rectangle, calc($int4 * 2 + 1));
cc_setsize($int3, 1, ^setsize_2, ^setsize_abs);
.cc_setsize($int3, 1, ^setsize_2, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(0, 15, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setcolour(^white);
.cc_setcolour(^white);
cc_setfill(true);
.cc_setfill(true);
cc_settrans(250);
.cc_settrans(250);
$int4, $int3 = calc($int4 + 1), calc($int3 - $int2);
}
} else {
cc_create(interface_162:35, ^iftype_rectangle, $int4);
cc_setsize(0, $int3, ^setsize_minus, ^setsize_2);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setcolour(^black);
cc_setfill(true);
cc_settrans(225);
cc_create(interface_162:54, ^iftype_rectangle, calc($int4 * 2));
.cc_create(interface_162:54, ^iftype_rectangle, calc($int4 * 2 + 1));
cc_setsize($int3, 1, ^setsize_2, ^setsize_abs);
.cc_setsize($int3, 1, ^setsize_2, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(0, 15, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setcolour(^white);
.cc_setcolour(^white);
cc_setfill(true);
.cc_setfill(true);
cc_settrans(200);
.cc_settrans(130);
}
}
~scrollbar_vertical_repaint(interface_162:557, "scrollbar_trans_dragger,3", "scrollbar_trans_dragger,0", "scrollbar_trans_dragger,1", "scrollbar_trans_dragger,2", "scrollbar_trans_arrows,0", "scrollbar_trans_arrows,1", 1);
if ($boolean0 = true) {
if_settrans(255, interface_162:3);
} else if (~on_mobile = false) {
if_settrans(155, interface_162:3);
} else {
if_settrans(255, interface_162:3);
cc_create(interface_162:2, ^iftype_rectangle, 0);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(^black);
cc_setfill(true);
cc_settrans(225);
}