-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,ca_bosses_draw_list].cs2
170 lines (170 loc) · 6.08 KB
/
[proc,ca_bosses_draw_list].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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// 4800
[proc,ca_bosses_draw_list](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)
cc_deleteall($component2);
cc_deleteall($component4);
cc_deleteall($component5);
cc_deleteall($component6);
cc_deleteall($component7);
cc_deleteall($component8);
cc_deleteall($component9);
cc_deleteall($component3);
cc_deleteall($component12);
def_int $int13 = 0;
def_int $int14 = 16750623;
def_int $count15 = enum_getoutputcount(enum_3987);
def_int $count16 = 0;
def_int $int17 = 0;
def_int $int18 = 0;
def_int $int19 = 88;
def_struct $struct20 = null;
def_string $string0 = "null";
def_int $int21 = -1;
def_int $int22 = -1;
def_int $int23 = 5;
def_int $int24 = 5;
def_int $int25 = 145;
def_int $int26 = 0;
def_int $int27 = 3;
def_int $int28 = 0;
def_int $int29 = 0;
def_int $int30 = 0;
def_int $colour31 = 0xff9933;
def_int $intarray0(calc($count15 + 1));
def_enum $enum32 = enum_3981;
def_int $index33 = 0;
def_int $count34 = enum_getoutputcount($enum32);
def_struct $struct35 = null;
while ($count16 < $count34) {
$struct35 = enum(int, struct, $enum32, $count16);
$index33 = struct_param($struct35, param_1312);
if ($index33 <= $count15 & ~ca_task_is_disabled($struct35) = 0) {
$intarray0($index33) = calc($intarray0($index33) + 1);
}
$count16 = calc($count16 + 1);
}
$count16 = 0;
$enum32 = enum_3982;
$count34 = enum_getoutputcount($enum32);
while ($count16 < $count34) {
$struct35 = enum(int, struct, $enum32, $count16);
$index33 = struct_param($struct35, param_1312);
if ($index33 <= $count15 & ~ca_task_is_disabled($struct35) = 0) {
$intarray0($index33) = calc($intarray0($index33) + 1);
}
$count16 = calc($count16 + 1);
}
$count16 = 0;
$enum32 = enum_3983;
$count34 = enum_getoutputcount($enum32);
while ($count16 < $count34) {
$struct35 = enum(int, struct, $enum32, $count16);
$index33 = struct_param($struct35, param_1312);
if ($index33 <= $count15 & ~ca_task_is_disabled($struct35) = 0) {
$intarray0($index33) = calc($intarray0($index33) + 1);
}
$count16 = calc($count16 + 1);
}
$count16 = 0;
$enum32 = enum_3984;
$count34 = enum_getoutputcount($enum32);
while ($count16 < $count34) {
$struct35 = enum(int, struct, $enum32, $count16);
$index33 = struct_param($struct35, param_1312);
if ($index33 <= $count15 & ~ca_task_is_disabled($struct35) = 0) {
$intarray0($index33) = calc($intarray0($index33) + 1);
}
$count16 = calc($count16 + 1);
}
$count16 = 0;
$enum32 = enum_3985;
$count34 = enum_getoutputcount($enum32);
while ($count16 < $count34) {
$struct35 = enum(int, struct, $enum32, $count16);
$index33 = struct_param($struct35, param_1312);
if ($index33 <= $count15 & ~ca_task_is_disabled($struct35) = 0) {
$intarray0($index33) = calc($intarray0($index33) + 1);
}
$count16 = calc($count16 + 1);
}
$count16 = 0;
$enum32 = enum_3986;
$count34 = enum_getoutputcount($enum32);
while ($count16 < $count34) {
$struct35 = enum(int, struct, $enum32, $count16);
$index33 = struct_param($struct35, param_1312);
if ($index33 <= $count15 & ~ca_task_is_disabled($struct35) = 0) {
$intarray0($index33) = calc($intarray0($index33) + 1);
}
$count16 = calc($count16 + 1);
}
$count16 = 0;
while ($count16 <= $count15) {
cc_create($component12, ^iftype_rectangle, $count16);
cc_setsize(0, 0, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top);
$count16 = calc($count16 + 1);
}
$count16 = 1;
while ($count16 <= $count15) {
$struct20 = enum(int, struct, enum_3987, $count16);
$string0 = struct_param($struct20, param_1313);
if (string_length(%varcstring527) <= 0 | string_indexof_string(lowercase($string0), lowercase(%varcstring527), 0) ! -1) {
$int21 = struct_param($struct20, param_1314);
$int22 = struct_param($struct20, param_1315);
$int29 = ~ca_specific_taskcount($int22);
$int30 = $intarray0($int22);
if ($int29 = $int30 & $int30 > 0) {
$colour31 = 0x0dc10d;
} else {
$colour31 = 0xff9933;
}
$int18 = calc($int24 + $int13 % $int27 * ($int25 + $int24));
if ($int13 > 0 & calc($int13 % $int27) = 0) {
$int17 = calc($int17 + $int19 + $int23);
}
cc_create($component2, ^iftype_rectangle, $int13);
cc_setsize($int25, $int19, ^setsize_abs, ^setsize_abs);
cc_setposition($int18, $int17, ^setpos_abs_left, ^setpos_abs_top);
cc_setcolour(^black);
cc_setfill(false);
cc_settrans(50);
cc_setopbase("<col=ff981f><$string0></col>");
cc_create($component4, ^iftype_text, $int13);
cc_setsize(calc($int25 - 6), 24, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int18 + 3), calc($int17 + 9), ^setpos_abs_left, ^setpos_abs_top);
cc_settext($string0);
cc_settextfont(b12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour($colour31);
cc_create($component8, ^iftype_text, $int13);
cc_setsize($int25, 24, ^setsize_abs, ^setsize_abs);
cc_setposition($int18, calc($int17 + 32), ^setpos_abs_left, ^setpos_abs_top);
if ($int21 = 0) {
cc_settext("<col=ff9933>Level:</col><col=ffffff> N/A</col>");
} else {
cc_settext("<col=ff9933>Level:</col><col=ffffff> <tostring($int21)></col>");
}
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
if ($int30 > 0) {
$int28 = ~ca_setup_progress_bar($component3, $int30, $int29, $int28, calc($int18 + 8), calc($int17 + 53), calc($int25 - 16), ^settextalign_centre, 0x0dc10d, 0);
}
$int26 = ~dynamic_stone_button_filled($component5, $component6, "", $int18, $int17, $int25, $int19, $int26, $int13, 1, 0);
if (cc_find($component6, $int13) = ^true) {
cc_setop(1, "View");
cc_setopbase("<col=ff9040><$string0></col>");
cc_setonop("ca_boss_select($component12, $count16)");
}
$int13 = calc($int13 + 1);
}
$count16 = calc($count16 + 1);
}
$int17 = calc($int17 + $int19 + $int23);
~script4858($int17, if_getlayer($component0), $component0, $component1, $component11);
if ($int13 = 0) {
if_sethide(false, $component10);
} else {
if_sethide(true, $component10);
}