-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,hidey_tabbuttons_draw].cs2
54 lines (54 loc) · 2.45 KB
/
[proc,hidey_tabbuttons_draw].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
53
54
// 1482
[proc,hidey_tabbuttons_draw](component $component0, string $text0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7)
cc_deleteall($component0);
if ($component0 = $component1) {
cc_create($component0, ^iftype_graphic, 0);
cc_setsize(20, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_centre);
cc_setgraphic("tabs_split,0");
cc_create($component0, ^iftype_graphic, 1);
cc_setsize(40, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("tabs_split,1");
cc_settiling(true);
cc_create($component0, ^iftype_graphic, 2);
cc_setsize(20, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
cc_setgraphic("tabs_split,2");
cc_create($component0, ^iftype_text, 3);
cc_setsize(10, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xffa82f);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext($text0);
if_setonmouseover(null, $component0);
if_setonmouseleave(null, $component0);
if_setonclick(null, $component0);
return;
}
cc_create($component0, ^iftype_graphic, 0);
cc_setsize(20, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_centre);
cc_setgraphic("tabs_split,3");
cc_create($component0, ^iftype_graphic, 1);
cc_setsize(40, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("tabs_split,4");
cc_settiling(true);
cc_create($component0, ^iftype_graphic, 2);
cc_setsize(20, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
cc_setgraphic("tabs_split,5");
cc_create($component0, ^iftype_text, 3);
cc_setsize(10, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext($text0);
if_setonmouseover("hidey_tabbuttons_hover(true, $component0)", $component0);
if_setonmouseleave("hidey_tabbuttons_hover(false, $component0)", $component0);
if_setonclick("hidey_tabbuttons($component0, $component2, $component3, $component4, $component5, $component6, $component7)", $component0);