This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,raids_sidepanel_data].cs2
47 lines (47 loc) · 1.87 KB
/
[proc,raids_sidepanel_data].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
// 1540
[proc,raids_sidepanel_data](component $component0, component $component1)
def_string $string0 = "Party size: <col=ffffff><tostring(%varbit5424)></col> Combat level: <col=ffffff><tostring(%varbit12285)></col>";
if (%varbit9540 > %varbit5424) {
$string0 = append($string0, "<br>Scaled party size: <col=ffffff><tostring(%varbit9540)></col>");
}
cc_settext($string0);
if (%varbit5425 = 0) {
if (%varbit5423 = 1) {
.cc_settext("");
} else {
.cc_settext("Waiting for your leader to begin the raid...");
}
} else if (%varbit5425 = 1) {
.cc_settext("Your party is exploring the upper level...");
} else if (%varbit5425 = 2) {
if (%varbit6385 = 1) {
.cc_settext("Your party has reached the middle level...");
} else {
.cc_settext("Your party has reached the lower level...");
}
} else if (%varbit5425 = 3) {
.cc_settext("Your party has reached the lower level...");
} else if (%varbit5425 = 4) {
.cc_settext("Your party has reached the bottom...");
} else {
.cc_settext("Get out! Get out!<br>GET OUT!");
}
def_string $string1 = "Start raid";
if (%varbit5423 = 1 & %varbit5425 = 0) {
if_setsize(calc(parawidth($string1, 190, p12_full) + 20), if_getheight($component1), ^setsize_abs, ^setsize_abs, $component1);
if_sethide(false, $component1);
~raids_sidepanel_drawbutton(false, $string1, $component1);
if_setonmouserepeat("raids_sidepanel_drawbutton(true, $string1, $component1)", $component1);
if_setonmouseleave("raids_sidepanel_drawbutton(false, $string1, $component1)", $component1);
if_setonop("raids_sidepanel_opbutton(event_op, $string1, $component1)", $component1);
if_setontimer(null, $component1);
if_setop(1, $string1, $component1);
} else {
if_sethide(true, $component1);
cc_deleteall($component1);
if_clearops($component1);
if_setonmouserepeat(null, $component1);
if_setonmouseleave(null, $component1);
if_setonop(null, $component1);
if_setontimer(null, $component1);
}