-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,poh_costumes_build].cs2
66 lines (66 loc) · 2.52 KB
/
[proc,poh_costumes_build].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
// 3534
[proc,poh_costumes_build](enum $enum0, int $count1, int $int2, int $int3, boolean $boolean4, component $component5, component $component6, int $int7, graphic $graphic8, component $component9, int $comsubid10)
def_int $intarray0($count1);
def_int $int11 = 0;
while ($int11 < $count1) {
$intarray0($int11) = $int11;
$int11 = calc($int11 + 1);
}
if ($int11 >= 2) {
~poh_costumes_quicksort(intarray0, 0, calc($count1 - 1), $enum0);
}
def_namedobj $namedobj12 = null;
def_namedobj $namedobj13 = null;
def_int $count14 = 0;
def_int $int15 = 0;
def_int $int16 = 0;
def_int $int17 = 0;
$int11 = 0;
while ($int11 < $count1) {
$namedobj12 = enum(int, namedobj, $enum0, $intarray0($int11));
$count14 = calc($int11 + 1);
if ($count14 >= $count1 | ~poh_costumes_countmembers($namedobj12) > 4) {
$int15, $int16 = ~poh_costumes_draw_big($int15, $namedobj12, $intarray0($int11), $int11, $count1, $graphic8, $int2, $boolean4, $component5);
if ($int16 = 1) {
$int17 = calc($int17 + 1);
}
} else {
$namedobj13 = enum(int, namedobj, $enum0, $intarray0($count14));
if (~poh_costumes_countmembers($namedobj13) > 4) {
$int15, $int16 = ~poh_costumes_draw_big($int15, $namedobj12, $intarray0($int11), $int11, $count1, $graphic8, $int2, $boolean4, $component5);
if ($int16 = 1) {
$int17 = calc($int17 + 1);
}
} else {
$int15, $int16, $int3 = ~poh_costumes_draw_small($int15, $int3, 0, $int7, $namedobj12, $intarray0($int11), $int11, $count1, $graphic8, $int2, $boolean4, $component5);
if ($int16 = 1) {
$int17 = calc($int17 + 1);
}
$int15, $int16, $int3 = ~poh_costumes_draw_small($int15, $int3, 1, $int7, $namedobj13, $intarray0($count14), $count14, $count1, $graphic8, $int2, $boolean4, $component5);
if ($int16 = 1) {
$int17 = calc($int17 + 1);
}
$count14 = calc($count14 + 1);
}
}
$int11 = $count14;
}
if (cc_find($component9, $comsubid10) = ^true) {
cc_settext("<enum(enum, string, enum_3301, $enum0)> (<tostring($int17)> / <tostring($count1)>)");
}
def_int $int18 = 0;
if ($int15 < 250) {
$int18 = ~max(40, calc(250 - $int15));
if (.cc_find($component5, $int3) = ^true) {
~poh_costumes_bottomfiller($int15);
} else {
.cc_create($component5, ^iftype_graphic, $int3);
~poh_costumes_bottomfiller($int15);
}
$int3, $int15 = calc($int3 + 1), calc($int15 + $int18);
}
while (cc_find($component5, $int3) = ^true) {
cc_sethide(true);
$int3 = calc($int3 + 1);
}
~poh_costumes_heightstretch(if_getlayer(interface_675:1), interface_675:1, $component5, $component6, $int15, ~min(800, calc($int15 + 54)), ^min_32bit_int);