-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,nzone_listbosses].cs2
128 lines (128 loc) · 4.57 KB
/
[clientscript,nzone_listbosses].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
// 253
[clientscript,nzone_listbosses](int $flags0, int $flags1, int $flags2, int $flags3, int $flags4, int $flags5, int $int6, int $int7, string $string0, string $string1)
if (string_length($string0) > 0 | string_length($string1) > 0) {
if_setsize(400, if_getheight(interface_129:1), ^setsize_abs, ^setsize_abs, interface_129:1);
~script1246(interface_129:6, "<col=00ff00><$string1></col>");
~script1246(interface_129:7, "<col=ff0000><$string0></col>");
if ($int6 ! -1) {
~script1246(interface_129:8, "All");
if ($int7 = 1) {
~script1246(interface_129:9, "Previous");
} else {
if_sethide(true, interface_129:9);
}
} else {
if_sethide(true, interface_129:8);
if_sethide(true, interface_129:9);
}
} else {
if_setsize(300, if_getheight(interface_129:1), ^setsize_abs, ^setsize_abs, interface_129:1);
if_sethide(true, interface_129:6);
if_sethide(true, interface_129:7);
if_sethide(true, interface_129:8);
if_sethide(true, interface_129:9);
}
cc_deleteall(interface_129:13);
def_int $int8 = 0;
if ($int6 ! -1) {
while ($int8 < 62) {
cc_create(interface_129:13, ^iftype_graphic, $int8);
cc_sethide(true);
$int8 = calc($int8 + 1);
}
}
def_int $width9 = 0;
if ($int6 ! -1) {
$width9 = 17;
}
def_int $int10 = -1;
def_int $int11 = -1;
def_int $int12 = 0;
def_int $height13 = 0;
def_string $string2 = "";
def_int $int14 = 0;
def_int $int15 = 0;
while ($int15 < 62) {
$int10 = enum(int, int, enum_797, $int15);
if ($int10 ! -1) {
$int11 = enum(int, int, enum_803, $int10);
if ($int11 ! -1 & ~script1260($flags0, $flags1, $int11) = 1) {
cc_create(interface_129:13, ^iftype_graphic, $int8);
$int8 = calc($int8 + 1);
cc_setsize(0, 17, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $height13, ^setpos_abs_centre, ^setpos_abs_top);
if (calc($int12 % 2) = 0) {
cc_setgraphic("tradebacking");
} else {
cc_setgraphic("tradebacking_light");
}
cc_settiling(true);
.cc_create(interface_129:13, ^iftype_text, $int8);
$int8 = calc($int8 + 1);
.cc_setsize($width9, 17, ^setsize_minus, ^setsize_abs);
.cc_setposition(0, $height13, ^setpos_abs_left, ^setpos_abs_top);
.cc_settextfont(p12_full);
.cc_settextshadow(true);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if (~script1260($flags2, $flags3, $int11) = 1) {
$string2 = enum(int, string, enum_802, $int10);
.cc_settext($string2);
if ($int6 ! -1) {
$int14 = ~script1260($flags4, $flags5, $int11);
if ($int14 = 1) {
.cc_setcolour(0x8f8f8f);
} else {
.cc_setcolour(0xff981f);
}
cc_setop(1, "Toggle");
cc_setopbase("<col=ff9040><enum(int, string, enum_804, $int11)></col> bosses");
cc_setonop("script1258(event_opindex, $int15, event_com, .cc_getid, $string2)");
cc_setonmouseover("cc_settrans(event_com, event_comsubid, 255, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, interface_129:15)");
$string2 = "<$string2>:<br>Unlocked from <col=7f0000><enum(int, string, enum_804, $int11)></col>";
cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, interface_129:15, $string2, 25, 512)");
.cc_create(interface_129:13, ^iftype_graphic, $int8);
$int8 = calc($int8 + 1);
.cc_setsize(17, 17, ^setsize_abs, ^setsize_abs);
.cc_setposition(0, $height13, ^setpos_abs_right, ^setpos_abs_top);
if ($int14 = 1) {
.cc_setgraphic("options_radio_buttons,1");
} else {
.cc_setgraphic("options_radio_buttons,2");
}
} else {
.cc_setcolour(0xff981f);
}
} else {
.cc_setcolour(0xff981f);
.cc_settext("<str><col=8f8f8f><enum(int, string, enum_802, $int10)></col></str>");
}
$int12, $height13 = calc($int12 + 1), calc($height13 + 17);
}
}
$int15 = calc($int15 + 1);
}
if ($height13 > if_getheight(interface_129:13)) {
if_setscrollsize(0, $height13, interface_129:13);
if ($int6 ! 1) {
if_setscrollpos(0, 0, interface_129:13);
%varcint138 = 0;
}
} else {
if_setscrollsize(0, 0, interface_129:13);
if_setscrollpos(0, 0, interface_129:13);
%varcint138 = 0;
cc_create(interface_129:13, ^iftype_graphic, $int8);
$int8 = calc($int8 + 1);
cc_setsize(0, $height13, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setgraphic("tradebacking_dark");
cc_settiling(true);
}
~scrollbar_vertical(interface_129:14, interface_129:13, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if ($int6 = 1) {
if (%varcint138 < 0) {
%varcint138 = 0;
}
~scrollbar_resize(interface_129:14, interface_129:13, %varcint138);
}