-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,adventurepath_draw_path].cs2
30 lines (30 loc) · 3.53 KB
/
[proc,adventurepath_draw_path].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
// 2946
[proc,adventurepath_draw_path](component $component0, component $component1, int $int2, struct $struct3, int $width4, int $int5, int $int6, int $int7, int $int8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, int $count21, component $component22, component $component23, component $component24, component $component25, component $component26, component $component27, component $component28, component $component29, component $component30, component $component31)(int)
def_int $int32 = struct_param($struct3, param_829);
cc_create($component1, ^iftype_graphic, $int2);
cc_setsize($int6, 69, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($width4 / 2 * $int7 + ($width4 / 4 - $int6 / 2)), calc($int5 / 2 * $int8 + 5), ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic(struct_param($struct3, param_830));
cc_setop(1, "Select <col=ff9040><struct_param($struct3, param_828)>");
cc_setonop("adventurepath_task_init($component0, $int32, $component1, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, event_op, $component22, $component23, $component24, $component25, $component26, $component27, $component28, $component29, $component30, $component31)");
if (~on_mobile = false) {
cc_setonmouserepeat("cc_settrans($component1, cc_getid, 50, null)");
cc_setonmouseleave("cc_settrans($component1, cc_getid, 0, null)");
}
$int2 = calc($int2 + 1);
$int2 = ~create_v2_stone_button_filled_free($component1, $int2, calc($width4 / 2 - 5 * 2), calc(5 * 7), calc($width4 / 2 * $int7 + 5), calc($int5 / 2 * ($int8 + 1) - 5 * 8), struct_param($struct3, param_828), 0xff981f, ^white, 0, 0);
cc_setop(1, "Select <col=ff9040><struct_param($struct3, param_828)>");
cc_setonop("adventurepath_task_init($component0, $int32, $component1, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, event_op, $component22, $component23, $component24, $component25, $component26, $component27, $component28, $component29, $component30, $component31)");
def_int $int33 = ~adventurepath_return_path_length($int32);
def_int $int34 = ~adventurepath_return_path_tasks_done($int32);
$int2 = ~script2990($component1, $int2, calc($int6 - 30), 29, calc($width4 / 2 * $int7 + ($width4 / 4 - $int6 / 2)), calc($int5 / 2 * ($int8 + 1) - 69), $int34, $int33, 0, " Tasks done");
$int2 = ~stoneborder_free($component1, $int2, calc($width4 / 2), calc($int5 / 2), calc($width4 / 2 * $int7), calc($int5 / 2 * $int8));
def_graphic $graphic35 = tick;
if (~adventurepath_return_path_status($int32) = 1) {
$int2 = ~script2984($component1, $int2, 29, 29, calc($width4 / 2 * $int7 + ($width4 / 4 + $int6 / 2 - 30)), calc($int5 / 2 * ($int8 + 1) - 69), "", $graphic35, $graphic35, 12, 12, 1, 0, 0);
} else if ($int32 = %varbit9324) {
$int2 = ~script2984($component1, $int2, 29, 29, calc($width4 / 2 * $int7 + ($width4 / 4 + $int6 / 2 - 30)), calc($int5 / 2 * ($int8 + 1) - 69), "Drop<col=ff9040> Focus", graphic_2223, graphic_2223, 4, 4, 0, 0, 0);
} else {
$int2 = ~script2984($component1, $int2, 29, 29, calc($width4 / 2 * $int7 + ($width4 / 4 + $int6 / 2 - 30)), calc($int5 / 2 * ($int8 + 1) - 69), "Set<col=ff9040> Focus", graphic_2224, graphic_2224, 4, 4, 0, 0, 0);
}
return($int2);