-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,skillmain_button_create].cs2
32 lines (32 loc) · 1.48 KB
/
[proc,skillmain_button_create].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
// 2929
[proc,skillmain_button_create](int $int0, int $int1, component $component2, int $int3, component $component4, int $int5, int $int6, obj $obj7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, int $int14, int $int15)(int, int)
if_sethide(false, $component2);
if_setposition($int14, $int15, ^setpos_abs_left, ^setpos_abs_top, $component2);
def_string $text0 = "";
if ($int1 = 0) {
if ($int0 = 1) {
$text0 = "?";
} else {
$text0 = "X";
}
} else if ($obj7 = bones_to_peaches_6926 & $component2 = $component12) {
$text0 = "25";
} else if ($int1 = 28) {
$text0 = "All";
} else {
$text0 = tostring($int1);
}
if ($int0 = 1) {
~skillmain_button_draw($component2, $text0, true, false);
if_setonmouserepeat(null, $component2);
if_setonmouseleave(null, $component2);
if_setonop("opsound(event_opindex, 2)", $component2);
} else {
~skillmain_button_draw($component2, $text0, false, false);
if_setonmouserepeat("skillmain_button_draw($component2, $text0, false, true)", $component2);
if_setonmouseleave("skillmain_button_draw($component2, $text0, false, false)", $component2);
if_setonop("skillmain_setquantity(event_opindex, $int1, $component4, $int5, $int6, $obj7, $component8, $component9, $component10, $component11, $component12, $component13)", $component2);
}
if_setop(1, "Quantity:", $component2);
if_setopbase("<col=ff9040><$text0></col>", $component2);
return(calc($int14 + $int5), calc($int15 + $int6));