-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,zeah_favour_set_tab].cs2
68 lines (68 loc) · 4 KB
/
[proc,zeah_favour_set_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
67
68
// 1206
[proc,zeah_favour_set_tab](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12)
if_sethide(true, $component8);
if_sethide(true, $component9);
if_sethide(true, $component10);
if_sethide(true, $component11);
if_sethide(true, $component12);
def_graphic $graphic13 = "banktabs,0";
if (cc_find($component3, 0) = ^true) {
cc_setgraphic($graphic13);
}
if (cc_find($component4, 0) = ^true) {
cc_setgraphic($graphic13);
}
if (cc_find($component5, 0) = ^true) {
cc_setgraphic($graphic13);
}
if (cc_find($component6, 0) = ^true) {
cc_setgraphic($graphic13);
}
if (cc_find($component7, 0) = ^true) {
cc_setgraphic($graphic13);
}
if_setonmouserepeat("zeah_favour_tab_mouserepeat(event_com, $component2, 3)", $component3);
if_setonmouserepeat("zeah_favour_tab_mouserepeat(event_com, $component2, 2)", $component4);
if_setonmouserepeat("zeah_favour_tab_mouserepeat(event_com, $component2, 4)", $component5);
if_setonmouserepeat("zeah_favour_tab_mouserepeat(event_com, $component2, 5)", $component6);
if_setonmouserepeat("zeah_favour_tab_mouserepeat(event_com, $component2, 1)", $component7);
if_setonmouseleave("cc_graphic_swapper(event_com, 0, $graphic13, $component2)", $component3);
if_setonmouseleave("cc_graphic_swapper(event_com, 0, $graphic13, $component2)", $component4);
if_setonmouseleave("cc_graphic_swapper(event_com, 0, $graphic13, $component2)", $component5);
if_setonmouseleave("cc_graphic_swapper(event_com, 0, $graphic13, $component2)", $component6);
if_setonmouseleave("cc_graphic_swapper(event_com, 0, $graphic13, $component2)", $component7);
if_setonop("zeah_favour_set_tab(3, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component3);
if_setonop("zeah_favour_set_tab(2, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component4);
if_setonop("zeah_favour_set_tab(4, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component5);
if_setonop("zeah_favour_set_tab(5, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component6);
if_setonop("zeah_favour_set_tab(1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component7);
def_component $component14 = null;
def_component $component15 = null;
if (%varcint79 = 3) {
$component14, $component15 = $component3, $component8;
} else if (%varcint79 = 2) {
$component14, $component15 = $component4, $component9;
} else if (%varcint79 = 4) {
$component14, $component15 = $component5, $component10;
} else if (%varcint79 = 5) {
$component14, $component15 = $component6, $component11;
} else if (%varcint79 = 1) {
$component14, $component15 = $component7, $component12;
} else {
return;
}
if_sethide(false, $component15);
if (cc_find($component14, 0) = ^true) {
cc_setgraphic("banktabs,2");
}
if_setonmouserepeat("tooltip_mouserepeat(event_com, -1, $component2, enum(int, string, enum_1264, %varcint79), 25, 512)", $component14);
if_setonmouseleave("deltooltip($component2)", $component14);
if_setonop("opsound(0, 0)", $component14);
def_int $height16 = if_getheight($component15);
if ($height16 > if_getheight($component0)) {
if_setscrollsize(0, $height16, $component0);
~scrollbar_resize($component1, $component0, if_getscrolly($component0));
} else {
if_setscrollsize(0, 0, $component0);
~scrollbar_resize($component1, $component0, 0);
}