-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,duel_stake_textbox].cs2
32 lines (32 loc) · 1.22 KB
/
[proc,duel_stake_textbox].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
// 2492
[proc,duel_stake_textbox](component $component0, int $int1, int $int2, int $y3, int $int4)(int)
if ($int4 > 8) {
cc_create($component0, ^iftype_graphic, $int1);
$int1 = calc($int1 + 1);
cc_setposition(calc($int2 + 4), $y3, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(calc($int4 - 8), 20, ^setsize_abs, ^setsize_abs);
cc_setgraphic("graphic_1124");
cc_settiling(true);
}
cc_create($component0, ^iftype_graphic, $int1);
$int1 = calc($int1 + 1);
cc_setposition($int2, $y3, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(4, 20, ^setsize_abs, ^setsize_abs);
cc_setgraphic("graphic_1123");
cc_settiling(false);
cc_create($component0, ^iftype_graphic, $int1);
$int1 = calc($int1 + 1);
cc_setposition(calc($int2 + $int4 - 4), $y3, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(4, 20, ^setsize_abs, ^setsize_abs);
cc_setgraphic("graphic_1125");
cc_settiling(false);
cc_create($component0, ^iftype_text, $int1);
$int1 = calc($int1 + 1);
cc_setsize(calc($int4 - 8), 20, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int2 + 4), $y3, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("0");
return($int1);