-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,stonepanel_red].cs2
32 lines (32 loc) · 2.12 KB
/
[proc,stonepanel_red].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
// 358
[proc,stonepanel_red](int $int0, component $component1, int $int2)(int)
def_int $width3 = if_getwidth($component1);
def_int $height4 = if_getheight($component1);
def_int $x5 = calc($width3 - 32);
def_int $y6 = calc($height4 - 32);
~create_graphic($component1, $int2, "v2_borders_slim,33", 16, -13, ^setpos_abs_left, ^setpos_abs_top, $x5, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,35", 16, calc($height4 - 20), ^setpos_abs_left, ^setpos_abs_top, $x5, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,34", -14, 16, ^setpos_abs_left, ^setpos_abs_top, 32, $y6, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,36", calc($width3 - 20), 16, ^setpos_abs_left, ^setpos_abs_top, 32, $y6, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,37", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,38", $x5, 0, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,39", 0, $y6, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,40", $x5, $y6, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
if ($int0 < 6) {
return($int2);
}
~create_graphic($component1, $int2, "v2_borders_slim,41", 0, calc($int0 - 20), ^setpos_abs_left, ^setpos_abs_top, $width3, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,42", 0, calc($int0 - 18), ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component1, $int2, "v2_borders_slim,43", $x5, calc($int0 - 18), ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
return($int2);