-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,pest_rewards_statdraw].cs2
36 lines (36 loc) · 1.85 KB
/
[proc,pest_rewards_statdraw].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
// 2780
[proc,pest_rewards_statdraw](stat $stat0, int $y1, int $int2, int $int3, int $int4, int $int5, int $int6, component $component7, component $component8, component $component9, component $component10, int $int11, int $int12)(int)
cc_create($component8, ^iftype_graphic, $int11);
$int11 = calc($int11 + 1);
cc_setsize(25, 25, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int2 + (36 - 25) / 2), $y1, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic(enum(stat, graphic, enum_255, $stat0));
def_int $int13 = calc($int3 - 40);
$int2 = calc($int2 + 40);
cc_create($component8, ^iftype_text, $int11);
$int11 = calc($int11 + 1);
cc_setsize($int13, 32, ^setsize_abs, ^setsize_abs);
cc_setposition($int2, $y1, ^setpos_abs_left, ^setpos_abs_top);
cc_settextalign(^settextalign_left, ^settextalign_top, 0);
cc_settextfont(p12_full);
cc_settextshadow(true);
def_int $int14 = enum(int, int, enum_2286, $int4);
if (stat_base($stat0) < 25) {
cc_setcolour(^red);
cc_settext("<enum(stat, string, enum_680, $stat0)> - requires level <tostring(25)>");
} else if (%var261 < $int14) {
cc_setcolour(^red);
cc_settext("<enum(stat, string, enum_680, $stat0)> - <tostring($int14)>+ points");
} else {
if ($int12 = $int4 | $int12 = $int5 | $int12 = $int6) {
cc_setcolour(^white);
} else {
cc_setcolour(0x00df00);
}
cc_settext("<enum(stat, string, enum_680, $stat0)> - <tostring(~script2786($stat0))> XP");
}
$int13 = calc($int13 / 3);
$int11, $int2 = ~pest_rewards_statbuttondraw($stat0, $y1, $int2, $int13, $int4, $component7, $component8, $component9, $component10, $int11, $int12);
$int11, $int2 = ~pest_rewards_statbuttondraw($stat0, $y1, $int2, $int13, $int5, $component7, $component8, $component9, $component10, $int11, $int12);
$int11, $int2 = ~pest_rewards_statbuttondraw($stat0, $y1, $int2, $int13, $int6, $component7, $component8, $component9, $component10, $int11, $int12);
return($int11);