-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,death_coffer_drawbutton].cs2
48 lines (48 loc) · 1.64 KB
/
[proc,death_coffer_drawbutton].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
37
38
39
40
41
42
43
44
45
46
47
48
// 3489
[proc,death_coffer_drawbutton](boolean $boolean0, boolean $boolean1, component $component2, string $text0, component $component3)
def_int $int4 = 0;
if ($boolean0 = true & $boolean1 = false) {
$int4 = ~v2_stone_button_out_filled($component2);
} else {
$int4 = ~v2_stone_button_in_filled($component2);
}
if ($component2 = $component3) {
cc_create($component2, ^iftype_text, $int4);
.cc_create($component2, ^iftype_text, calc($int4 + 1));
cc_setsize(0, 10, ^setsize_minus, ^setsize_minus);
.cc_setsize(0, 10, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settextshadow(true);
.cc_settextshadow(true);
cc_settextfont(p12_full);
.cc_settextfont(p11_full);
if ($boolean0 = true) {
cc_setcolour(^white);
.cc_setcolour(^white);
cc_settextalign(^settextalign_centre, ^settextalign_top, 0);
cc_settext("Confirm:");
.cc_settextalign(^settextalign_centre, ^settextalign_bottom, 0);
.cc_settext($text0);
} else {
cc_setcolour(0x9f9f9f);
.cc_setcolour(0x9f9f9f);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("---");
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settext("");
}
} else {
cc_create($component2, ^iftype_text, $int4);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
if ($boolean0 = true) {
cc_setcolour(^white);
} else {
cc_setcolour(0x9f9f9f);
}
cc_settextshadow(true);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext($text0);
}