-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,pest_rewards_statbuttondraw].cs2
35 lines (35 loc) · 1.69 KB
/
[proc,pest_rewards_statbuttondraw].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
// 2781
[proc,pest_rewards_statbuttondraw](stat $stat0, int $y1, int $int2, int $int3, int $int4, component $component5, component $component6, component $component7, component $component8, int $int9, int $int10)(int, int)
def_int $int11 = enum(int, int, enum_2286, $int4);
cc_create($component6, ^iftype_text, $int9);
cc_setsize($int3, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int2, $y1, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_left, ^settextalign_bottom, 0);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settext(~pest_rewards_costpts($int11));
cc_setop(1, "<enum(stat, string, enum_680, $stat0)> XP: <~pest_rewards_costpoints($int11)>");
def_string $string0 = "";
if (stat_base($stat0) < 25) {
$string0 = "The Void Knights will not offer training in skills for which you have a level under <tostring(25)>.";
cc_setonop("pest_rewards_refuse($string0, $component5, $component6, $component7, $component8)");
} else if (%var261 < $int11) {
$string0 = "You need <~pest_rewards_costpoints($int11)> to claim that reward.";
cc_setonop("pest_rewards_refuse($string0, $component5, $component6, $component7, $component8)");
} else {
cc_setonop("pest_rewards_select($int4, $component5, $component6, $component7, $component8)");
}
if ($int10 = $int4) {
cc_setcolour(^white);
cc_setonmouserepeat(null);
cc_setonmouseleave(null);
} else if (string_length($string0) > 0) {
cc_setcolour(0x9f9f9f);
cc_setonmouserepeat(null);
cc_setonmouseleave(null);
} else {
cc_setcolour(0xff981f);
cc_setonmouserepeat("cc_colour_swapper(event_com, event_comsubid, 0xffb83f)");
cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, 0xff981f)");
}
return(calc($int9 + 1), calc($int2 + $int3));