-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,poh_jewellery_box_prepbox].cs2
36 lines (36 loc) · 1.19 KB
/
[proc,poh_jewellery_box_prepbox].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
// 1686
[proc,poh_jewellery_box_prepbox](component $component0, int $int1, string $text0, namedobj $namedobj2, int $int3)(int)
cc_deleteall($component0);
def_int $int4 = 0;
cc_create($component0, ^iftype_graphic, $int4);
$int4 = calc($int4 + 1);
cc_setsize(2, 2, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settiling(true);
if ($int3 >= $int1) {
cc_setgraphic("tradebacking_light");
} else {
cc_setgraphic("tradebacking_dark");
}
$int4 = ~thinbox($component0, $int4);
cc_create($component0, ^iftype_text, $int4);
$int4 = calc($int4 + 1);
cc_setsize(70, 30, ^setsize_abs, ^setsize_abs);
cc_setposition(5, 20, ^setpos_abs_left, ^setpos_abs_centre);
if ($int3 >= $int1) {
cc_setcolour(^white);
} else {
cc_setcolour(0x7f7f7f);
}
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext($text0);
cc_create($component0, ^iftype_graphic, $int4);
$int4 = calc($int4 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(7 + (70 - 36) / 2), -10, ^setpos_abs_left, ^setpos_abs_centre);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setobject_nonum($namedobj2, 1);
return($int4);