-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,ca_create_dropdown].cs2
145 lines (145 loc) · 4.61 KB
/
[proc,ca_create_dropdown].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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// 4768
[proc,ca_create_dropdown](component $component0, component $component1, component $component2, int $int3, int $int4)
def_int $colour5 = 0xff981f;
def_int $int6 = 92;
def_int $int7 = 81;
if (~on_mobile = true) {
$int6 = 112;
$int7 = 115;
}
def_int $int8 = calc($int6 / 4);
def_int $int9 = 6;
if_setsize($int7, calc($int6 + 12), ^setsize_abs, ^setsize_abs, $component1);
cc_create($component1, ^iftype_graphic, $int3);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("tradebacking_light");
$int3 = calc($int3 + 1);
$int3 = ~steelbox($component1, $int3, 0);
if_sethide(true, $component1);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 0) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Overview");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 0) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("ca_info_mouseover($component1, $int3)");
cc_setonmouseleave("ca_info_mouseleave($component1, $int3, $colour5)");
}
cc_setop(1, "View Overview");
cc_setonop("script4771($component0, $component1, $component2)");
}
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int3 = calc($int3 + 1);
$int9 = calc($int9 + $int8);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 1) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Tasks");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 1) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("ca_info_mouseover($component1, $int3)");
cc_setonmouseleave("ca_info_mouseleave($component1, $int3, $colour5)");
}
cc_setop(1, "View Tasks");
cc_setonop("script4771($component0, $component1, $component2)");
}
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int3 = calc($int3 + 1);
$int9 = calc($int9 + $int8);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 3) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Bosses");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 3) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("ca_info_mouseover($component1, $int3)");
cc_setonmouseleave("ca_info_mouseleave($component1, $int3, $colour5)");
}
cc_setop(1, "View Bosses");
cc_setonop("script4771($component0, $component1, $component2)");
}
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
$int3 = calc($int3 + 1);
$int9 = calc($int9 + $int8);
cc_create($component1, ^iftype_rectangle, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^white);
cc_setfill(true);
if ($int4 = 2) {
cc_settrans(235);
} else {
cc_settrans(255);
}
$int3 = calc($int3 + 1);
cc_create($component1, ^iftype_text, $int3);
cc_setsize(calc($int7 - 12), $int8, ^setsize_abs, ^setsize_abs);
cc_setposition(6, $int9, ^setpos_abs_left, ^setpos_abs_top);
cc_settext("Rewards");
cc_settextfont(p12_full);
cc_settextshadow(true);
if ($int4 = 2) {
cc_setcolour(0xc8c8c8);
cc_settrans(200);
} else {
cc_setcolour($colour5);
if (~on_mobile = false) {
cc_setonmouseover("ca_info_mouseover($component1, $int3)");
cc_setonmouseleave("ca_info_mouseleave($component1, $int3, $colour5)");
}
cc_setop(1, "View Rewards");
cc_setonop("script4771($component0, $component1, $component2)");
}
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);