-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,poh_costumes_draw_small].cs2
148 lines (148 loc) · 4.64 KB
/
[proc,poh_costumes_draw_small].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
// 3536
[proc,poh_costumes_draw_small](int $int0, int $int1, int $int2, int $int3, namedobj $namedobj4, int $int5, int $int6, int $count7, graphic $graphic8, int $int9, boolean $boolean10, component $component11)(int, int, int)
def_int $int12 = 3;
if ($int2 = 1) {
$int12 = calc($int12 + $int3);
}
def_int $int13 = calc($int5 * $int9);
def_int $int14 = calc($int13 + 4);
def_int $int15 = calc($int13 + $int9);
def_int $int16 = 0;
def_int $int17 = 0;
def_int $int18 = 0;
def_int $int19 = 0;
def_int $int20 = 0;
def_int $int21 = 1;
def_int $int22 = 1;
def_enum $enum23 = enum(obj, enum, enum_3077, $namedobj4);
if ($enum23 ! null) {
$int16 = enum_getoutputcount($enum23);
while ($int17 < $int16) {
$int18, $int19, $int14, $int20 = ~poh_costumes_drawalternates($int18, $int19, $int14, 4, $int12, $int0, enum(int, namedobj, $enum23, $int17), $boolean10, $component11, $int15);
if ($int20 = 1) {
$int21 = 0;
} else {
$int22 = 0;
}
$int17 = calc($int17 + 1);
}
} else {
$int18, $int19, $int14, $int20 = ~poh_costumes_drawalternates($int18, $int19, $int14, 4, $int12, $int0, $namedobj4, $boolean10, $component11, $int15);
if ($int20 = 1) {
$int21 = 0;
} else {
$int22 = 0;
}
}
if (cc_find($component11, calc($int13 + 3)) = ^true) {
cc_setsize(calc($int3 - 3), 20, ^setsize_abs, ^setsize_abs);
cc_setposition($int12, $int0, ^setpos_abs_left, ^setpos_abs_top);
if ($int21 = 1) {
cc_setcolour(0x9f9f9f);
} else {
cc_setcolour(0xff981f);
}
cc_settextfont($graphic8);
}
while ($int14 < $int15) {
if (cc_find($component11, $int14) = ^true) {
cc_sethide(true);
cc_clearops;
cc_setontimer(null);
}
$int14 = calc($int14 + 1);
}
def_int $int24 = 20;
if ($int18 > 0) {
$int24 = calc($int24 + 37 * ($int19 + 1));
} else {
$int24 = calc($int24 + 37 * $int19);
}
if (cc_find($component11, $int13) = ^true) {
if ($int2 = 1) {
cc_setsize($int3, $int24, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int0, ^setpos_abs_right, ^setpos_abs_top);
} else {
cc_setsize($int3, $int24, ^setsize_abs, ^setsize_abs);
cc_setposition(0, $int0, ^setpos_abs_left, ^setpos_abs_top);
if (.cc_find($component11, $int1) = ^true) {
~poh_costumes_rightborder($int3, $int24, $int0);
} else {
.cc_create($component11, ^iftype_graphic, $int1);
~poh_costumes_rightborder($int3, $int24, $int0);
}
$int1 = calc($int1 + 1);
}
if ($int22 = 1) {
cc_setgraphic("tradebacking_light");
cc_settrans(120);
if ($boolean10 = true) {
cc_setop(1, "Set");
cc_setonop("poh_costumes_opgraphic(event_opindex, event_com, event_comsubid, 0, 120)");
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 40, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 120, null)");
if (.cc_find($component11, calc($int13 + 1)) = ^true) {
.cc_sethide(false);
if ($int2 = 1) {
.cc_setposition(3, calc($int0 + 5), ^setpos_abs_right, ^setpos_abs_top);
} else {
.cc_setposition(calc(6 + $int3), calc($int0 + 5), ^setpos_abs_right, ^setpos_abs_top);
}
}
} else {
cc_clearops;
cc_setonop(null);
cc_setonmouserepeat(null);
cc_setonmouseleave(null);
if (.cc_find($component11, calc($int13 + 1)) = ^true) {
.cc_sethide(true);
}
}
} else {
cc_setgraphic("tradebacking_dark");
cc_settrans(0);
if ($boolean10 = true & $int21 = 0) {
cc_setop(1, "Set");
cc_setonop("poh_costumes_opgraphic(event_opindex, event_com, event_comsubid, 120, 0)");
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 80, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)");
if (.cc_find($component11, calc($int13 + 1)) = ^true) {
.cc_sethide(false);
if ($int2 = 1) {
.cc_setposition(3, calc($int0 + 5), ^setpos_abs_right, ^setpos_abs_top);
} else {
.cc_setposition(calc(6 + $int3), calc($int0 + 5), ^setpos_abs_right, ^setpos_abs_top);
}
}
} else {
cc_clearops;
cc_setonop(null);
cc_setonmouserepeat(null);
cc_setonmouseleave(null);
if (.cc_find($component11, calc($int13 + 1)) = ^true) {
.cc_sethide(true);
}
}
}
cc_setontimer(null);
}
if (cc_find($component11, calc($int13 + 2)) = ^true) {
if ($int2 = 1) {
if ($int6 < calc($count7 - 1)) {
$int0 = calc($int0 + $int24 + 3);
cc_sethide(false);
cc_setsize($int3, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, calc($int0 - 20), ^setpos_abs_right, ^setpos_abs_top);
} else {
cc_sethide(true);
$int0 = calc($int0 + $int24);
}
} else if ($int6 < calc($count7 - 2)) {
cc_sethide(false);
cc_setsize($int3, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, calc($int0 + $int24 + 3 - 20), ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_sethide(true);
}
}
return($int0, $int22, $int1);