-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,ge_offers_setup_init].cs2
205 lines (205 loc) · 11.9 KB
/
[proc,ge_offers_setup_init].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
// 773
[proc,ge_offers_setup_init](component $component0, component $component1, component $component2)
def_int $width3 = if_getwidth($component0);
def_int $int4 = calc($width3 - 30);
def_int $int5 = calc($int4 / 2);
def_int $y6 = 119;
def_int $y7 = 136;
def_graphic $graphic8 = "ge_icons,4";
def_graphic $graphic9 = "ge_icons,5";
cc_deleteall($component0);
def_int $int10 = 0;
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid11 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(40, 36, ^setsize_abs, ^setsize_abs);
cc_setposition(70, 31, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("graphic_1121");
cc_setop(1, "Choose item");
cc_setonop("opsound(event_opindex, 2)");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid12 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(20, 18, ^setsize_abs, ^setsize_abs);
cc_setposition(20, $y6, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("ge_smallicons,4");
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)");
cc_setop(1, "-1");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid13 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(20, 18, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int5 - 25), $y6, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("ge_smallicons,5");
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)");
cc_setop(1, "+1");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid14 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(25, $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "+1");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid15 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(67, $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "+10");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid16 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(109, $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "+100");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid17 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(151, $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid18 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(193, $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "Enter quantity");
cc_setonop("opsound(event_opindex, 2)");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid19 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(20, 18, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int5 + 5), $y6, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("ge_smallicons,4");
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)");
cc_setop(1, "-1");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid20 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(20, 18, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int4 - 25), $y6, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("ge_smallicons,5");
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)");
cc_setop(1, "+1");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid21 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int5 + 15), $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "-5%");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid22 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int5 + 72), $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "Guide price");
cc_setonop("opsound(event_opindex, 2)");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid23 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int5 + $int5 - 107), $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "Enter price");
cc_setonop("opsound(event_opindex, 2)");
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid24 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(35, 35, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(15 + $int5 + $int5 - 50), $y7, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic($graphic8);
cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)");
cc_setop(1, "+5%");
def_int $comsubid25 = 0;
def_int $comsubid26 = 0;
def_int $comsubid27 = 0;
def_int $comsubid28 = 0;
def_int $comsubid29 = 0;
def_int $comsubid30 = 0;
def_int $comsubid31 = 0;
def_int $comsubid32 = 0;
$int10, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32 = ~ge_offers_initboxes($int10, $component0, $component1, p11_full);
cc_create($component0, ^iftype_graphic, $int10);
def_int $comsubid33 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(20, 18, ^setsize_abs, ^setsize_abs);
cc_setposition(70, 31, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("ge_smallicons,1");
$int10 = ~ge_offers_setup_buttontext($component0, $comsubid14, "+1", $int10);
$int10 = ~ge_offers_setup_buttontext($component0, $comsubid15, "+10", $int10);
$int10 = ~ge_offers_setup_buttontext($component0, $comsubid16, "+100", $int10);
def_int $comsubid34 = $int10;
$int10 = ~ge_offers_setup_buttontext($component0, $comsubid17, "", $int10);
$int10 = ~ge_offers_setup_buttontext($component0, $comsubid18, "...", $int10);
$int10 = ~ge_offers_setup_buttongraphic($component0, $comsubid21, "ge_smallicons,2", $int10);
$int10 = ~ge_offers_setup_buttongraphic($component0, $comsubid22, "ge_smallicons,0", $int10);
$int10 = ~ge_offers_setup_buttontext($component0, $comsubid23, "...", $int10);
$int10 = ~ge_offers_setup_buttongraphic($component0, $comsubid24, "ge_smallicons,3", $int10);
cc_create($component0, ^iftype_text, $int10);
def_int $comsubid35 = $int10;
$int10 = calc($int10 + 1);
cc_setsize(if_getwidth($component2), if_getheight($component2), ^setsize_abs, ^setsize_abs);
cc_setposition(if_getx($component2), if_gety($component2), ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(b12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
~ge_offers_setup_draw($component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35);
if_setonvartransmit("ge_offers_setup_draw($component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35){var1151, var563, var1043}", $component0);
if_setoninvtransmit("ge_offers_setup_draw($component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35){inv}", $component0);
if (cc_find($component0, $comsubid12) = ^true) {
cc_setonop("ge_offers_setup_changequantity(-1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid13) = ^true) {
cc_setonop("ge_offers_setup_changequantity(1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid14) = ^true) {
cc_setonop("ge_offers_setup_changequantity(1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid15) = ^true) {
cc_setonop("ge_offers_setup_changequantity(10, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid16) = ^true) {
cc_setonop("ge_offers_setup_changequantity(100, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid17) = ^true) {
cc_setonop("ge_offers_setup_changequantity(^max_32bit_int, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid19) = ^true) {
cc_setonop("ge_offers_setup_changeprice(-1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid20) = ^true) {
cc_setonop("ge_offers_setup_changeprice(1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid21) = ^true) {
cc_setonop("ge_offers_setup_changeprice(-5, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}
if (cc_find($component0, $comsubid24) = ^true) {
cc_setonop("ge_offers_setup_changeprice(5, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)");
}