-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,clan_board_addline].cs2
206 lines (206 loc) · 7.5 KB
/
[clientscript,clan_board_addline].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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
// 4357
[clientscript,clan_board_addline](int $int0, int $flags1, string $string0)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
return;
}
def_component $component2 = enum(int, component, enum_3803, $int0);
if ($component2 = null) {
return;
}
cc_deleteall($component2);
def_string $string1 = "";
def_string $string2 = "";
def_string $text3 = "";
def_string $string4 = "";
def_string $string5 = "";
def_string $string6 = "";
def_string $string7 = "";
def_int $flags3 = 0;
def_int $int4 = 0;
def_int $int5 = 0;
def_int $int6 = 0;
def_int $int7 = 0;
if (string_length($string0) > 0) {
cc_create($component2, ^iftype_rectangle, 0);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setfill(true);
$string1, $string0 = ~script632($string0);
~clan_board_entry_init(%varcint43, $component2, $int0, $string1, interface_700:20);
$int6 = if_getwidth(interface_700:17);
cc_create($component2, ^iftype_text, 1);
cc_setposition($int5, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int6, 22, ^setsize_abs, ^setsize_abs);
cc_setcolour(0xffb83f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($string1);
$int5 = calc($int5 + $int6);
$string2, $string0 = ~script632($string0);
$int6 = if_getwidth(interface_700:18);
cc_create($component2, ^iftype_text, 2);
cc_setposition($int5, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int6, 22, ^setsize_abs, ^setsize_abs);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($string2);
$int5 = calc($int5 + $int6);
$text3, $string0 = ~script632($string0);
$string4, $string0 = ~script632($string0);
$int6 = if_getwidth(interface_700:19);
cc_create($component2, ^iftype_text, 3);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_top);
cc_setsize($int5, 22, ^setsize_minus, ^setsize_abs);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($text3);
$string5, $string0 = ~script632($string0);
$string5 = ~script4371($string5, $flags1);
$string6, $string0 = ~script632($string0);
$string7, $string0 = ~script632($string0);
if (string_length($string6) > 0) {
$flags3 = setbit($flags3, 0);
}
if (string_length($string7) > 0) {
$flags3 = setbit($flags3, 1);
}
$int4 = calc(paraheight($string5, if_getwidth(interface_700:20) - 4, p12_full) * 12 + 3);
cc_create($component2, ^iftype_text, 4);
cc_setposition(0, 22, ^setpos_abs_centre, ^setpos_abs_top);
cc_setsize(4, $int4, ^setsize_minus, ^setsize_abs);
cc_setcolour(0x7f7f7f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
cc_settextshadow(true);
cc_settext($string5);
cc_create($component2, ^iftype_text, 5);
cc_sethide(true);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext(append_num(~string_prependzero($string4, 6), $int0));
cc_create($component2, ^iftype_text, 6);
cc_sethide(true);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext(append_num(~string_prependzero($string2, 3), $int0));
$int7 = calc(22 + $int4 + 6);
cc_create($component2, ^iftype_text, 7);
if ($flags3 > 0) {
$int7 = calc($int7 + 13);
cc_sethide(false);
cc_setposition(0, calc(22 + $int4), ^setpos_abs_centre, ^setpos_abs_top);
cc_setsize(4, 13, ^setsize_minus, ^setsize_abs);
cc_setcolour(0x7f7f7f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
cc_settextshadow(true);
if ($flags3 = 3) {
cc_settext("Combat level: <col=ff981f><$string6></col>, Skill total: <col=ff981f><$string7></col>");
} else if ($flags3 = 2) {
cc_settext("Skill total: <col=ff981f><$string7></col>");
} else if ($flags3 = 1) {
cc_settext("Combat level: <col=ff981f><$string6></col>");
}
} else {
cc_sethide(true);
}
if_setsize(0, $int7, ^setsize_minus, ^setsize_abs, $component2);
%varcint43, %varcint49 = calc(%varcint43 + 1), calc(%varcint49 + $int7);
} else {
if_setsize(0, 0, ^setsize_minus, ^setsize_abs, $component2);
if_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_top, $component2);
if_setonop(null, $component2);
if_clearops($component2);
}
if_setontimer(null, $component2);
def_int $int8 = 0;
def_int $int9 = 0;
def_int $int10 = 0;
def_int $int11 = 0;
if ($int0 >= calc(45 - 1)) {
switch_int (%varcint453) {
case 1, 2, 3, 4, 5, 0 :
case default :
%varcint453 = 5;
}
~clan_board_setsort;
cc_deleteall(interface_700:20);
$int0, $int5 = 0, calc(45 * 2);
while ($int0 < $int5) {
$component2 = enum(int, component, enum_3803, $int0);
if ($component2 ! null) {
if_sethide(false, $component2);
}
cc_create(interface_700:20, ^iftype_rectangle, $int0);
cc_sethide(true);
$int0 = calc($int0 + 1);
}
if (%varcint43 <= 0) {
cc_create(interface_700:20, ^iftype_text, $int0);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(10, 10, ^setsize_minus, ^setsize_minus);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
~script4360;
cc_setonvartransmit("script4359(event_com, event_comsubid){var807, var808}");
}
$int0 = 0;
while ($int0 <= 15) {
cc_create(interface_700:5, ^iftype_rectangle, $int0);
cc_sethide(true);
$int0 = calc($int0 + 1);
}
$int5, $int7, $int6 = 0, 21, calc(if_getwidth(interface_700:5) - 21);
if (~on_mobile = true) {
$int7 = 25;
}
while ($int8 <= 15) {
$string1 = enum(int, string, enum_3792, $int8);
if (string_length($string1) > 0) {
cc_create(interface_700:5, ^iftype_rectangle, $int0);
$int0 = calc($int0 + 1);
cc_setsize(0, $int7, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int5, ^setpos_abs_centre, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
~script4368(220, 255, 235, $int8);
cc_setop(1, "Change filter");
cc_setopbase("<col=ff9040><$string1></col>");
.cc_create(interface_700:5, ^iftype_graphic, $int0);
$int0 = calc($int0 + 1);
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
.cc_setposition(1, calc($int5 + ($int7 - 17) / 2), ^setpos_abs_left, ^setpos_abs_top);
~clan_board_filterupdate($int8);
cc_setonvartransmit("clan_board_filterupdate(event_com, .cc_getid, $int8){var807, var808}");
cc_create(interface_700:5, ^iftype_text, $int0);
$int0 = calc($int0 + 1);
cc_setsize($int6, $int7, ^setsize_abs, ^setsize_abs);
cc_setposition(0, $int5, ^setpos_abs_right, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settext(~script4193($string1, $int6, p12_full));
$int5 = calc($int5 + $int7);
}
$int8 = calc($int8 + 1);
}
$int9 = calc(52 + if_getheight(interface_700:7));
$int10 = calc(50 + if_getheight(interface_700:16) + 1 + 2 + if_getheight(interface_700:67));
$int11 = ~max(calc($int5 + $int9), calc(%varcint49 + $int10));
~clan_board_setsize(%varcint49, $int10, interface_700:20, interface_700:66, $int5, $int9, interface_700:5, interface_700:6, $int11, interface_700:1, if_getheight(if_getlayer(interface_700:1)));
if_sethide(false, interface_700:68);
if_sethide(false, interface_700:70);
if_sethide(false, interface_700:12);
}