-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,makeover_drawmodels].cs2
98 lines (98 loc) · 3.1 KB
/
[proc,makeover_drawmodels].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
// 499
[proc,makeover_drawmodels](component $component0, enum $enum1, enum $enum2, enum $enum3, model $model4, int $int5, int $int6, int $int7, int $int8, int $int9)
def_int $int10 = 0;
def_string $string0 = enum(int, string, $enum1, $int10);
while (string_length($string0) > 0) {
cc_create($component0, ^iftype_rectangle, $int10);
cc_setfill(true);
cc_setcolour(^black);
cc_settrans(255);
cc_setop(1, $string0);
$int10 = calc($int10 + 1);
$string0 = enum(int, string, $enum1, $int10);
}
if ($int10 <= 0) {
return;
}
def_int $int11 = 0;
if ($int9 = 1) {
$int11 = calc($int10 / 2);
if (calc($int10 % 2) = 1) {
$int11 = calc($int11 + 1);
}
} else {
$int11 = $int10;
}
def_int $int12 = calc(if_getwidth($component0) / $int11);
def_int $int13 = 40;
def_int $int14 = 0;
if ($int12 <= $int13) {
$int13 = $int12;
} else {
$int14 = calc(($int12 - $int13) / 2);
}
def_int $int15 = calc(($int12 - 25) / 2);
def_int $int16 = calc(if_getheight($component0) - 20);
if ($int9 = 1) {
$int16 = calc($int16 / 2);
}
def_int $int17 = calc(20 + $int16 - 25);
def_int $y18 = 0;
if ($int9 = 1) {
$y18 = calc($int17 + $int16);
}
def_int $int19 = $int10;
def_int $int20 = 0;
def_int $int21 = 0;
def_int $y22 = 0;
def_model $model23 = null;
def_int $int24 = 0;
while ($int20 < $int10) {
if ($int9 = 1 & $int20 >= $int11) {
$int24, $y22 = 1, calc(20 + $int16);
$int21 = calc(($int20 - $int11) * $int12);
} else {
$int24, $y22, $int21 = 0, 20, calc($int20 * $int12);
}
if (cc_find($component0, $int20) = ^true) {
cc_setsize($int13, $int16, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int21 + $int14), $y22, ^setpos_abs_left, ^setpos_abs_top);
}
cc_create($component0, ^iftype_model, $int19);
$int19 = calc($int19 + 1);
cc_setposition($int21, $y22, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int12, $int16, ^setsize_abs, ^setsize_abs);
cc_setmodel(enum(int, model, $enum2, $int20));
cc_setmodelangle(0, $int6, 0, $int7, 0, $int5);
if ($enum3 ! null) {
$model23 = enum(int, model, $enum3, $int20);
if ($model23 ! null) {
cc_create($component0, ^iftype_model, $int19);
$int19 = calc($int19 + 1);
cc_setposition($int21, $y22, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int12, $int16, ^setsize_abs, ^setsize_abs);
cc_setmodel($model23);
cc_setmodelangle(0, $int6, 0, $int7, 0, $int5);
}
}
if ($model4 ! null) {
cc_create($component0, ^iftype_model, $int19);
$int19 = calc($int19 + 1);
cc_setposition($int21, $y22, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize($int12, $int16, ^setsize_abs, ^setsize_abs);
cc_setmodel($model4);
cc_setmodelangle(0, $int6, 0, $int7, 0, $int5);
}
cc_create($component0, ^iftype_graphic, $int19);
$int19 = calc($int19 + 1);
cc_setsize(25, 25, ^setsize_abs, ^setsize_abs);
if ($int24 = 1) {
cc_setposition(calc($int21 + $int15), $y18, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_setposition(calc($int21 + $int15), $int17, ^setpos_abs_left, ^setpos_abs_top);
}
cc_setgraphic("overlay_multiway");
~makeover_indicator($int20, $int8);
cc_setonvartransmit("makeover_indicator(event_com, event_comsubid, $int20, $int8){var261, var262}");
$int20 = calc($int20 + 1);
}