-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,v2_stone_button_filled].cs2
19 lines (19 loc) · 1.5 KB
/
[proc,v2_stone_button_filled].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 134
[proc,v2_stone_button_filled](component $component0)(int)
cc_deleteall($component0);
def_int $width1 = if_getwidth($component0);
def_int $height2 = if_getheight($component0);
def_int $x3 = calc($width1 - 9);
def_int $y4 = calc($height2 - 9);
def_int $width5 = calc($width1 - 18);
def_int $height6 = calc($height2 - 18);
~create_graphic($component0, 0, "tradebacking", 0, 0, ^setpos_abs_centre, ^setpos_abs_centre, 2, 2, ^setsize_minus, ^setsize_minus);
~create_graphic($component0, 1, "v2_stone_button,0", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 2, "v2_stone_button,1", $x3, 0, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 3, "v2_stone_button,2", 0, $y4, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 4, "v2_stone_button,3", $x3, $y4, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 5, "v2_stone_button,4", 0, 9, ^setpos_abs_left, ^setpos_abs_top, 9, $height6, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 6, "v2_stone_button,5", 9, 0, ^setpos_abs_left, ^setpos_abs_top, $width5, 9, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 7, "v2_stone_button,6", $x3, 9, ^setpos_abs_left, ^setpos_abs_top, 9, $height6, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 8, "v2_stone_button,7", 9, $y4, ^setpos_abs_left, ^setpos_abs_top, $width5, 9, ^setsize_abs, ^setsize_abs);
return(9);