-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script2127].cs2
33 lines (33 loc) · 1.35 KB
/
[proc,script2127].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
// 2127
[proc,script2127](boolean $boolean0, component $component1, string $text0, component $component2, component $component3, component $component4)
cc_deleteall($component1);
def_int $int5 = 0;
if ($boolean0 = true) {
$int5 = ~v2_stone_button_in_filled($component1);
} else {
$int5 = ~v2_stone_button_out_filled($component1);
}
cc_create($component1, ^iftype_text, $int5);
$int5 = calc($int5 + 1);
.cc_create($component1, ^iftype_text, $int5);
$int5 = calc($int5 + 1);
cc_setsize(0, 20, ^setsize_minus, ^setsize_abs);
.cc_setsize(0, 25, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 5, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, 5, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setcolour(0xff981f);
.cc_setcolour(0xff981f);
cc_settextfont(b12_full);
.cc_settextfont(p11_full);
cc_settextshadow(true);
.cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($text0);
if ($component1 = $component2) {
.cc_settext("<col=ffffff><~tostring_spacer(%var261, ",")></col> Agility XP");
} else if ($component1 = $component3) {
.cc_settext("<col=ffffff><~tostring_spacer(%var262, ",")></col> Thieving XP");
} else {
.cc_settext("<col=ffffff><~tostring_spacer(%var263, ",")></col> Agility XP +<br><col=ffffff><~tostring_spacer(%var264, ",")></col> Thieving XP");
}