-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,collection_draw_tab].cs2
66 lines (66 loc) · 2.47 KB
/
[proc,collection_draw_tab].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
55
56
57
58
59
60
61
62
63
64
65
66
// 2728
[proc,collection_draw_tab](component $component0, struct $struct1, int $int2)
cc_deleteall($component0);
if_setsize(93, 0, ^setsize_abs, ^setsize_minus, $component0);
if ($component0 = interface_621:4) {
if_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top, $component0);
} else if ($component0 = interface_621:5) {
if_setposition(96, 0, ^setpos_abs_left, ^setpos_abs_top, $component0);
} else if ($component0 = interface_621:6) {
if_setsize(95, 0, ^setsize_abs, ^setsize_minus, $component0);
if_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_top, $component0);
} else if ($component0 = interface_621:7) {
if_setposition(96, 0, ^setpos_abs_right, ^setpos_abs_top, $component0);
} else if ($component0 = interface_621:8) {
if_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_top, $component0);
}
def_int $int3 = struct_param($struct1, param_684);
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_create($component0, ^iftype_graphic, 1);
cc_setsize(36, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settiling(true);
cc_create($component0, ^iftype_graphic, 2);
cc_sethflip(true);
cc_setsize(20, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
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_settextshadow(true);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext(struct_param($struct1, param_682));
if ($int3 = $int2) {
if (cc_find($component0, 0) = ^true) {
cc_setgraphic("tabs_tall,0");
}
if (cc_find($component0, 1) = ^true) {
cc_setgraphic("tabs_tall,1");
}
if (cc_find($component0, 2) = ^true) {
cc_setgraphic("tabs_tall,0");
}
if (cc_find($component0, 3) = ^true) {
cc_setcolour(0xffa82f);
}
if_setonmouseover(null, $component0);
if_setonmouseleave(null, $component0);
} else {
if (cc_find($component0, 0) = ^true) {
cc_setgraphic("tabs_tall,2");
}
if (cc_find($component0, 1) = ^true) {
cc_setgraphic("tabs_tall,3");
}
if (cc_find($component0, 2) = ^true) {
cc_setgraphic("tabs_tall,2");
}
if (cc_find($component0, 3) = ^true) {
cc_setcolour(0xff981f);
}
if_setonmouseover("collection_hover_tab($component0, true)", $component0);
if_setonmouseleave("collection_hover_tab($component0, false)", $component0);
}