-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,adventurepath_task_focus].cs2
35 lines (35 loc) · 1.58 KB
/
[proc,adventurepath_task_focus].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
// 3002
[proc,adventurepath_task_focus](component $component0, int $int1, int $int2, int $int3, int $int4)
if (~script2973($int2, $int4) ! $int2) {
if (cc_find($component0, calc($int3 + 9)) = ^true) {
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setgraphic("clickcross,5");
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
}
if_setonmouserepeat("adventurepath_do_nothing", $component0);
if_setonmouseleave("adventurepath_do_nothing", $component0);
} else if ($int1 = $int2) {
if (cc_find($component0, calc($int3 + 9)) = ^true) {
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setgraphic(graphic_2223);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
}
if_setonmouserepeat("script2998($component0, $int1, $int2, $int4)", $component0);
if_setonmouseleave("script2999($component0, $int1, $int2, $int4)", $component0);
} else if (~adventurepath_return_task_status($int2) = 1) {
if (cc_find($component0, calc($int3 + 9)) = ^true) {
cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
cc_setgraphic(tick);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
}
if_setonmouserepeat("adventurepath_do_nothing", $component0);
if_setonmouseleave("adventurepath_do_nothing", $component0);
} else {
if (cc_find($component0, calc($int3 + 9)) = ^true) {
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setgraphic(graphic_2224);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
}
if_setonmouserepeat("script2998($component0, $int1, $int2, $int4)", $component0);
if_setonmouseleave("script2999($component0, $int1, $int2, $int4)", $component0);
}