-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script3560].cs2
214 lines (214 loc) · 8.08 KB
/
[proc,script3560].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
207
208
209
210
211
212
213
214
// 3560
[proc,script3560](enum $enum0)
def_int $width1 = if_getwidth(interface_162:50);
def_int $height2 = if_getheight(interface_162:50);
cc_deleteall(interface_162:50);
def_int $int3 = 0;
def_int $int4 = enum_getoutputcount($enum0);
def_int $intarray0(calc($int4 * 38));
def_int $int5 = 0;
def_namedobj $namedobj6 = null;
def_enum $enum7 = null;
def_int $int8 = 0;
def_namedobj $namedobj9 = null;
def_enum $enum10 = null;
def_int $int11 = 0;
def_obj $obj12 = null;
def_string $string0 = "";
while ($int4 > 0) {
$int4 = calc($int4 - 1);
$namedobj6 = enum(int, namedobj, $enum0, $int4);
$enum7 = enum(obj, enum, enum_3077, $namedobj6);
if ($enum7 ! null) {
$int8 = enum_getoutputcount($enum7);
while ($int8 > 0) {
$int8 = calc($int8 - 1);
$namedobj9 = enum(int, namedobj, $enum7, $int8);
$enum10 = enum(obj, enum, enum_3304, $namedobj9);
if ($enum10 ! null) {
$int11 = enum_getoutputcount($enum10);
while ($int11 > 0) {
$int11 = calc($int11 - 1);
$obj12 = enum(int, namedobj, $enum10, $int11);
$string0 = oc_name($obj12);
if (string_length(%varcstring359) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring359), 0) ! -1) {
cc_create(interface_162:50, ^iftype_rectangle, $int3);
cc_setopbase("<col=ff9040><$string0></col>");
cc_setonop("poh_costumes_searchresult($namedobj6, $enum0, 84)");
cc_setonkey("poh_costumes_searchresult($namedobj6, $enum0, event_keycode)");
$int3 = calc($int3 + 1);
cc_create(interface_162:50, ^iftype_graphic, $int3);
cc_setobject_nonum($obj12, 1);
$intarray0($int5) = $int3;
$int5, $int3 = calc($int5 + 1), calc($int3 + 1);
cc_create(interface_162:50, ^iftype_text, $int3);
cc_settext($string0);
$int3 = calc($int3 + 1);
}
}
} else {
$obj12 = enum(obj, namedobj, enum_3303, $namedobj9);
if ($obj12 ! null & enum(obj, boolean, enum_5434, $obj12) = false) {
$string0 = oc_name($obj12);
if (string_length(%varcstring359) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring359), 0) ! -1) {
cc_create(interface_162:50, ^iftype_rectangle, $int3);
cc_setopbase("<col=ff9040><$string0></col>");
cc_setonop("poh_costumes_searchresult($namedobj6, $enum0, 84)");
cc_setonkey("poh_costumes_searchresult($namedobj6, $enum0, event_keycode)");
$int3 = calc($int3 + 1);
cc_create(interface_162:50, ^iftype_graphic, $int3);
cc_setobject_nonum($obj12, 1);
$intarray0($int5) = $int3;
$int5, $int3 = calc($int5 + 1), calc($int3 + 1);
cc_create(interface_162:50, ^iftype_text, $int3);
cc_settext($string0);
$int3 = calc($int3 + 1);
}
}
}
$string0 = oc_name($namedobj9);
if (string_length(%varcstring359) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring359), 0) ! -1) {
cc_create(interface_162:50, ^iftype_rectangle, $int3);
cc_setopbase("<col=ff9040><$string0></col>");
cc_setonop("poh_costumes_searchresult($namedobj6, $enum0, 84)");
cc_setonkey("poh_costumes_searchresult($namedobj6, $enum0, event_keycode)");
$int3 = calc($int3 + 1);
cc_create(interface_162:50, ^iftype_graphic, $int3);
cc_setobject_nonum($namedobj9, 1);
$intarray0($int5) = $int3;
$int5, $int3 = calc($int5 + 1), calc($int3 + 1);
cc_create(interface_162:50, ^iftype_text, $int3);
cc_settext($string0);
$int3 = calc($int3 + 1);
}
}
} else {
$enum10 = enum(obj, enum, enum_3304, $namedobj6);
if ($enum10 ! null) {
$int11 = enum_getoutputcount($enum10);
while ($int11 > 0) {
$int11 = calc($int11 - 1);
$obj12 = enum(int, namedobj, $enum10, $int11);
$string0 = oc_name($obj12);
if (string_length(%varcstring359) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring359), 0) ! -1) {
cc_create(interface_162:50, ^iftype_rectangle, $int3);
cc_setopbase("<col=ff9040><$string0></col>");
$int3 = calc($int3 + 1);
cc_setonop("poh_costumes_searchresult($namedobj6, $enum0, 84)");
cc_setonkey("poh_costumes_searchresult($namedobj6, $enum0, event_keycode)");
cc_create(interface_162:50, ^iftype_graphic, $int3);
cc_setobject_nonum($obj12, 1);
$intarray0($int5) = $int3;
$int5, $int3 = calc($int5 + 1), calc($int3 + 1);
cc_create(interface_162:50, ^iftype_text, $int3);
cc_settext($string0);
$int3 = calc($int3 + 1);
}
}
} else {
$obj12 = enum(obj, namedobj, enum_3303, $namedobj6);
if ($obj12 ! null) {
$string0 = oc_name($obj12);
if (string_length(%varcstring359) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring359), 0) ! -1) {
cc_create(interface_162:50, ^iftype_rectangle, $int3);
cc_setopbase("<col=ff9040><$string0></col>");
cc_setonop("poh_costumes_searchresult($namedobj6, $enum0, 84)");
cc_setonkey("poh_costumes_searchresult($namedobj6, $enum0, event_keycode)");
$int3 = calc($int3 + 1);
cc_create(interface_162:50, ^iftype_graphic, $int3);
cc_setobject_nonum($obj12, 1);
$intarray0($int5) = $int3;
$int5, $int3 = calc($int5 + 1), calc($int3 + 1);
cc_create(interface_162:50, ^iftype_text, $int3);
cc_settext($string0);
$int3 = calc($int3 + 1);
}
}
}
$string0 = oc_name($namedobj6);
if (string_length(%varcstring359) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring359), 0) ! -1) {
cc_create(interface_162:50, ^iftype_rectangle, $int3);
cc_setopbase("<col=ff9040><$string0></col>");
cc_setonop("poh_costumes_searchresult($namedobj6, $enum0, 84)");
cc_setonkey("poh_costumes_searchresult($namedobj6, $enum0, event_keycode)");
$int3 = calc($int3 + 1);
cc_create(interface_162:50, ^iftype_graphic, $int3);
cc_setobject_nonum($namedobj6, 1);
$intarray0($int5) = $int3;
$int5, $int3 = calc($int5 + 1), calc($int3 + 1);
cc_create(interface_162:50, ^iftype_text, $int3);
cc_settext($string0);
$int3 = calc($int3 + 1);
}
}
}
if ($int5 <= 0) {
~script753($width1, $height2, "No matches found.", false);
return;
}
if ($int5 >= 2) {
~poh_costumes_searchsort(intarray0, 0, calc($int5 - 1));
}
def_int $int13 = calc($width1 / 3);
def_int $int14 = calc($width1 - $int13);
def_int $int15 = calc($int14 - $int13);
def_int $int16 = calc($int15 - $int13);
def_int $width17 = calc($int13 - 40);
def_int $x18 = calc($int14 + 40);
def_int $x19 = calc($int15 + 40);
def_int $x20 = calc($int16 + 40);
def_int $int21 = 0;
def_int $x22 = 0;
def_int $x23 = 0;
def_int $height24 = 0;
$int4 = 0;
while ($int4 < $int5) {
$int21 = calc($int4 % 3);
if ($int21 = 0) {
$x22, $x23 = $int16, $x20;
} else if ($int21 = 1) {
$x22, $x23 = $int15, $x19;
} else {
$x22, $x23 = $int14, $x18;
}
if (cc_find(interface_162:50, $intarray0($int4)) = ^true) {
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($x22, $height24, ^setpos_abs_left, ^setpos_abs_top);
cc_setoutline(1);
cc_setgraphicshadow(0x555555);
$obj12 = cc_getinvobject;
}
if (cc_find(interface_162:50, calc($intarray0($int4) - 1)) = ^true & .cc_find(interface_162:50, calc($intarray0($int4) + 1)) = ^true) {
cc_setsize($int13, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($x22, $height24, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
cc_settrans(255);
cc_setonmouseover("cc_settrans(event_com, event_comsubid, 200, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 255, null)");
cc_setop(1, "Find");
if ($int4 > 0) {
cc_setonkey(null);
}
.cc_setsize($width17, 32, ^setsize_abs, ^setsize_abs);
.cc_setposition($x23, $height24, ^setpos_abs_left, ^setpos_abs_top);
.cc_settextfont(p12_full);
.cc_settextshadow(false);
.cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
.cc_setcolour(^black);
}
$int4 = calc($int4 + 1);
if ($int21 >= 2) {
$height24 = calc($height24 + 32);
}
}
if ($int21 < 2) {
$height24 = calc($height24 + 32);
}
if ($height24 > $height2) {
if_setscrollsize(0, $height24, interface_162:50);
} else {
if_setscrollpos(0, 0, interface_162:50);
if_setscrollsize(0, 0, interface_162:50);
}
~scrollbar_resize(interface_162:51, interface_162:50, if_getscrolly(interface_162:50));