-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,stonebox].cs2
37 lines (37 loc) · 2.71 KB
/
[proc,stonebox].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
// 713
[proc,stonebox](component $component0, int $int1, int $int2)(int)
if ($int1 = 1) {
~create_graphic($component0, $int2, "v2_stone_borders,4", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,5", 0, 0, ^setpos_abs_right, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,6", 0, 0, ^setpos_abs_left, ^setpos_abs_bottom, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,7", 0, 0, ^setpos_abs_right, ^setpos_abs_bottom, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,0", 0, -13, ^setpos_abs_centre, ^setpos_abs_top, 64, 32, ^setsize_minus, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,2", 0, -12, ^setpos_abs_centre, ^setpos_abs_bottom, 64, 32, ^setsize_minus, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,1", -13, 0, ^setpos_abs_left, ^setpos_abs_centre, 32, 64, ^setsize_abs, ^setsize_minus);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,3", -12, 0, ^setpos_abs_right, ^setpos_abs_centre, 32, 64, ^setsize_abs, ^setsize_minus);
} else {
~create_graphic($component0, $int2, "v2_stone_borders,18", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,19", 0, 0, ^setpos_abs_right, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,20", 0, 0, ^setpos_abs_left, ^setpos_abs_bottom, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,21", 0, 0, ^setpos_abs_right, ^setpos_abs_bottom, 32, 32, ^setsize_abs, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,8", 0, -14, ^setpos_abs_centre, ^setpos_abs_top, 64, 32, ^setsize_minus, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,8", 0, -12, ^setpos_abs_centre, ^setpos_abs_bottom, 64, 32, ^setsize_minus, ^setsize_abs);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,13", -14, 0, ^setpos_abs_left, ^setpos_abs_centre, 32, 64, ^setsize_abs, ^setsize_minus);
$int2 = calc($int2 + 1);
~create_graphic($component0, $int2, "v2_stone_borders,13", -12, 0, ^setpos_abs_right, ^setpos_abs_centre, 32, 64, ^setsize_abs, ^setsize_minus);
}
$int2 = calc($int2 + 1);
return($int2);