-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,steelborder].cs2
52 lines (52 loc) · 2.78 KB
/
[proc,steelborder].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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// 228
[proc,steelborder](component $component0, string $text0, int $flags1)(int)
cc_deleteall($component0);
~create_graphic($component0, 0, "tradebacking", 0, 0, ^setpos_abs_centre, ^setpos_abs_centre, 2, 2, ^setsize_minus, ^setsize_minus);
cc_create($component0, ^iftype_text, 1);
cc_setposition(0, 6, ^setpos_abs_centre, ^setpos_abs_top);
cc_setsize(12, 24, ^setsize_minus, ^setsize_abs);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(b12_full);
cc_settext($text0);
def_int $comsubid2 = cc_getid;
~create_graphic($component0, 2, "steelborder,0", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 25, 30, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 3, "steelborder,1", 0, 0, ^setpos_abs_right, ^setpos_abs_top, 25, 30, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 4, "steelborder,2", 0, 0, ^setpos_abs_left, ^setpos_abs_bottom, 25, 30, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 5, "steelborder,3", 0, 0, ^setpos_abs_right, ^setpos_abs_bottom, 25, 30, ^setsize_abs, ^setsize_abs);
~create_graphic($component0, 6, "miscgraphics,2", -15, 0, ^setpos_abs_left, ^setpos_abs_centre, 36, 60, ^setsize_abs, ^setsize_minus);
~create_graphic($component0, 7, "steelborder2,1", -15, 0, ^setpos_abs_right, ^setpos_abs_centre, 36, 60, ^setsize_abs, ^setsize_minus);
~create_graphic($component0, 8, "steelborder2,0", 0, -15, ^setpos_abs_centre, ^setpos_abs_top, 50, 36, ^setsize_minus, ^setsize_abs);
~create_graphic($component0, 9, "miscgraphics,3", 0, -15, ^setpos_abs_centre, ^setpos_abs_bottom, 50, 36, ^setsize_minus, ^setsize_abs);
if (testbit($flags1, 2) = ^false) {
~create_graphic($component0, 10, "steelborder_divider,0", 0, 14, ^setpos_abs_centre, ^setpos_abs_top, 10, 26, ^setsize_minus, ^setsize_abs);
}
def_graphic $graphic3 = "close_buttons,0";
def_graphic $graphic4 = "close_buttons,1";
def_int $x5 = 3;
def_int $y6 = 6;
def_int $width7 = 26;
def_int $height8 = 23;
if (~on_mobile = true) {
$graphic3 = "steelborder_close_button,0";
$graphic4 = "steelborder_close_button,0";
$x5 = 1;
$y6 = 1;
$width7 = 33;
$height8 = 33;
}
def_int $comsubid9 = 11;
if (testbit($flags1, 0) = ^false) {
~create_graphic($component0, $comsubid9, $graphic3, $x5, $y6, ^setpos_abs_right, ^setpos_abs_top, $width7, $height8, ^setsize_abs, ^setsize_abs);
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic3, null)");
cc_setonmouseover("cc_graphic_swapper(event_com, event_comsubid, $graphic4, null)");
cc_setop(1, "Close");
cc_setonop("closebutton_click");
cc_setonkey("closebutton_key(event_key)");
$comsubid9 = 12;
}
if (testbit($flags1, 1) = ^true) {
~create_graphic($component0, $comsubid9, "map_resize", 0, 0, ^setpos_abs_right, ^setpos_abs_bottom, 8, 8, ^setsize_abs, ^setsize_abs);
}
return($comsubid2);