-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,adventurepath_set_info].cs2
266 lines (266 loc) · 11.5 KB
/
[proc,adventurepath_set_info].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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
// 2997
[proc,adventurepath_set_info](int $int0, component $component1, component $component2, component $component3, component $component4, struct $struct5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, component $component22)
cc_deleteall($component3);
cc_deleteall($component21);
cc_deleteall($component22);
cc_deleteall($component4);
cc_deleteall($component22);
cc_deleteall(interface_642:22);
def_string $text0 = struct_param($struct5, param_810);
if_settext($text0, $component1);
if_setcolour(0xff981f, $component1);
def_string $text1 = struct_param($struct5, param_812);
if_settext($text1, $component2);
if_setcolour(0xff981f, $component2);
def_int $int23 = 0;
if (~on_mobile = false) {
cc_create($component3, ^iftype_rectangle, $int23);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setfill(true);
cc_settrans(255);
cc_setcolour(^black);
cc_setonmouserepeat("cc_settrans(event_com, cc_getid, 200, null)");
cc_setonmouseleave("cc_settrans(event_com, cc_getid, 255, null)");
$int23 = calc(1 + $int23);
}
cc_create($component3, ^iftype_text, $int23);
cc_settextalign(^settextalign_left, ^settextalign_top, 17);
cc_setcolour(0xff981f);
cc_settext(~adventurepath_replace(struct_param($struct5, param_813)));
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
$int23 = calc(1 + $int23);
cc_create($component3, ^iftype_text, $int23);
cc_settextalign(^settextalign_right, ^settextalign_bottom, 13);
cc_setcolour(0xff981f);
cc_settext("<~text_device("Click", "Tap")> here for more information.<img=15>");
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setop(1, "More info");
cc_setonop("adventurepath_show_more_info($component15, $component8, $component9, $component14)");
def_int $int24 = 0;
def_int $int25 = 0;
def_int $int26 = 0;
def_int $int27 = 0;
$int23 = 0;
def_int $width28 = if_getwidth($component4);
def_struct $struct29 = struct_param($struct5, param_808);
def_int $index30 = -1;
if ($struct29 ! null) {
$index30 = struct_param($struct29, param_806);
}
if (($index30 = -1 | ~adventurepath_return_task_status($index30) = 1) & ~adventurepath_return_task_status($int0) = 0 & struct_param($struct5, param_927) ! null) {
if_setop(1, "Show<col=ff9040> Hint", interface_642:22);
if_setop(2, "Remove<col=ff9040> Hint arrow", interface_642:22);
$int23 = ~v2_stone_button_filled(interface_642:22);
if_setonmouserepeat("v2_stone_button_change_in(interface_642:22, 0)", interface_642:22);
if_setonmouseleave("v2_stone_button_change_out(interface_642:22, 0)", interface_642:22);
if_setonop("button_select_sound", interface_642:22);
} else {
if_setop(1, "", interface_642:22);
if_setop(2, "", interface_642:22);
$int23 = ~v2_stone_button_in_filled(interface_642:22);
if_setonmouserepeat(null, interface_642:22);
if_setonmouseleave(null, interface_642:22);
if_setonop(null, interface_642:22);
}
cc_create(interface_642:22, ^iftype_graphic, $int23);
cc_setsize(22, 22, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("worldmap_icon,0");
$int23 = 0;
def_int $int31 = 0;
def_int $int32 = 0;
def_enum $enum33 = null;
def_enum $enum34 = null;
def_enum $enumarray0(4);
def_enum $enumarray1(4);
def_int $int35 = 0;
def_namedobj $namedobj36 = null;
def_int $int37 = 0;
def_int $int38 = 0;
$enum33 = struct_param($struct5, param_820);
$enum34 = struct_param($struct5, param_821);
if ($enum33 ! null & $enum34 ! null) {
while ($int31 < 4) {
$enumarray0($int31) = enum(int, enum, $enum33, $int31);
$enumarray1($int31) = enum(int, enum, $enum34, $int31);
$int31 = calc($int31 + 1);
}
if ($enumarray0(0) ! null | $enumarray0(1) ! null) {
$int23, $int37 = ~script3004($component4, 0, "Free:", $int23, $int37, 0, 0, 0);
$int23, $int37 = ~script3004($component4, 0, "Members:", $int23, $int37, 0, 1, 1);
if ($enumarray0(0) ! null) {
$int38 = ~adventurepath_return_reward_f2p($int0);
$int32 = enum_getoutputcount($enumarray0(0));
$int31 = 0;
while ($int31 < $int32) {
$namedobj36 = enum(int, namedobj, $enumarray0(0), $int31);
if ($namedobj36 ! null) {
$int23, $int24, $int27, $int37 = ~adventurepath_spawn_item($component4, $int23, $namedobj36, enum(namedobj, int, $enumarray1(0), $namedobj36), $int24, $int27, $width28, $int37, false, $int38);
}
$int31 = calc($int31 + 1);
}
$int25 = $int27;
$int24, $int27 = 0, 0;
}
if ($enumarray0(1) ! null) {
$int38 = ~adventurepath_return_reward_p2p($int0);
$int32 = enum_getoutputcount($enumarray0(1));
$int31 = 0;
while ($int31 < $int32) {
$namedobj36 = enum(int, namedobj, $enumarray0(1), $int31);
if ($namedobj36 ! null) {
$int23, $int24, $int27, $int37 = ~adventurepath_spawn_item($component4, $int23, $namedobj36, enum(namedobj, int, $enumarray1(1), $namedobj36), $int24, $int27, $width28, $int37, true, $int38);
}
$int31 = calc($int31 + 1);
}
if ($int27 > $int25) {
$int25 = $int27;
}
$int24, $int27 = 0, calc($int25 + 1);
}
$int37 = calc($int37 + 16);
}
if ($enumarray0(2) ! null | $enumarray0(3) ! null) {
$int23, $int37 = ~script3004($component4, 0, "Reclaimable Free:", $int23, $int37, $int27, 0, 0);
$int23, $int37 = ~script3004($component4, 0, "Reclaimable Members:", $int23, $int37, $int27, 1, 1);
$int38 = 0;
if ($enumarray0(2) ! null) {
$int32 = enum_getoutputcount($enumarray0(2));
$int31 = 0;
while ($int31 < $int32) {
$namedobj36 = enum(int, namedobj, $enumarray0(2), $int31);
if ($namedobj36 ! null) {
$int23, $int24, $int27, $int37 = ~adventurepath_spawn_item($component4, $int23, $namedobj36, enum(namedobj, int, $enumarray1(2), $namedobj36), $int24, $int27, $width28, $int37, false, $int38);
}
$int31 = calc($int31 + 1);
}
$int26 = $int27;
$int24, $int27 = 0, calc($int25 + 1);
}
if ($enumarray0(3) ! null) {
$int32 = enum_getoutputcount($enumarray0(3));
$int31 = 0;
while ($int31 < $int32) {
$namedobj36 = enum(int, namedobj, $enumarray0(3), $int31);
if ($namedobj36 ! null) {
$int23, $int24, $int27, $int37 = ~adventurepath_spawn_item($component4, $int23, $namedobj36, enum(namedobj, int, $enumarray1(3), $namedobj36), $int24, $int27, $width28, $int37, true, $int38);
}
$int31 = calc($int31 + 1);
}
if ($int27 > $int26) {
$int26 = $int27;
}
$int26 = calc($int26 + 1);
}
}
}
def_int $height39 = 0;
def_int $height40 = if_getheight($component4);
cc_create($component4, ^iftype_graphic, $int23);
cc_setgraphic("v2_borders_slim,1");
$int23 = calc($int23 + 1);
$int37 = calc(16 + $int37);
$height39 = calc(32 * $int26 + $int37);
if ($height39 > $height40) {
cc_setsize(32, calc($height39 - 15), ^setsize_abs, ^setsize_abs);
cc_setposition(calc(if_getwidth($component4) / 2 - 18), 10, ^setpos_abs_left, ^setpos_abs_top);
if_setscrollsize(0, $height39, $component4);
if_sethide(false, $component13);
} else {
cc_setsize(32, calc($height40 - 20), ^setsize_abs, ^setsize_abs);
cc_setposition(calc(if_getwidth($component4) / 2 - 18), 10, ^setpos_abs_left, ^setpos_abs_top);
if_setscrollsize(0, 0, $component4);
if_sethide(true, $component13);
}
if_setscrollpos(0, 0, $component4);
~scrollbar_vertical($component13, $component4, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if_settext($text0, $component20);
if_setcolour(0xff981f, $component20);
~adventurepath_hint_list(struct_param($struct5, param_814), $component17);
def_graphic $graphic41 = struct_param($struct5, param_822);
if ($graphic41 ! null) {
if_setgraphic($graphic41, $component19);
if_settext(~adventurepath_replace(struct_param($struct5, param_823)), $component18);
if_setcolour(0xff981f, $component18);
}
if_settext($text1, $component16);
if_setcolour(0xff981f, $component16);
def_boolean $boolean42 = struct_param($struct5, param_825);
def_string $url2 = struct_param($struct5, param_824);
$int23 = 0;
if ($boolean42 = true) {
cc_create($component21, ^iftype_text, $int23);
cc_settextalign(^settextalign_left, ^settextalign_top, 13);
cc_setcolour(0xf4f4f4);
cc_settext("<img=13><~text_device("Click", "Tap")> here to go to a helpful web page.");
cc_setoutline(2);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setonop("adventurepath_open_url($url2)");
cc_setop(1, "Open link");
if (~on_mobile = false) {
cc_setonmouserepeat("cc_colour_swapper(event_com, cc_getid, 0xbebebe)");
cc_setonmouseleave("cc_colour_swapper(event_com, cc_getid, 0xf4f4f4)");
}
}
def_int $int43 = struct_param($struct5, param_807);
def_int $int44 = ~adventurepath_return_task_focus($int43);
if (~script2973($int0, $int43) ! $int0) {
$int23 = ~v2_stone_button_in_filled($component22);
cc_create($component22, ^iftype_graphic, $int23);
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("clickcross,5");
cc_setop(1, "Set<col=ff9040> Focus");
cc_setonop("button_select_sound");
cc_create($component22, ^iftype_rectangle, calc(1 + $int23));
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settrans(255);
if_setonmouserepeat("adventurepath_do_nothing", $component22);
if_setonmouseleave("adventurepath_do_nothing", $component22);
} else if ($int44 = $int0) {
$int23 = ~v2_stone_button_filled($component22);
cc_create($component22, ^iftype_graphic, $int23);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setgraphic("graphic_2223");
cc_create($component22, ^iftype_rectangle, calc(1 + $int23));
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settrans(255);
cc_setop(1, "Remove<col=ff9040> Focus");
cc_setonop("script3001($component22, $int0, $int43)");
if_setonmouserepeat("script2998($component22, $int44, $int0, $int43)", $component22);
if_setonmouseleave("script2999($component22, $int44, $int0, $int43)", $component22);
} else if (~adventurepath_return_task_status($int0) = 1) {
$int23 = ~v2_stone_button_in_filled($component22);
cc_create($component22, ^iftype_graphic, $int23);
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("tick");
cc_create($component22, ^iftype_rectangle, calc(1 + $int23));
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settrans(255);
if_setonmouserepeat("adventurepath_do_nothing", $component22);
if_setonmouseleave("adventurepath_do_nothing", $component22);
} else {
$int23 = ~v2_stone_button_filled($component22);
cc_create($component22, ^iftype_graphic, $int23);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setgraphic("graphic_2224");
cc_create($component22, ^iftype_rectangle, calc(1 + $int23));
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_settrans(255);
cc_setop(1, "Set<col=ff9040> Focus");
cc_setonop("script3001($component22, $int0, $int43)");
if_setonmouserepeat("script2998($component22, $int44, $int0, $int43)", $component22);
if_setonmouseleave("script2999($component22, $int44, $int0, $int43)", $component22);
}
if_setonvartransmit("script3000($component22){var2360, var2358}", $component22);