-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script3156].cs2
94 lines (94 loc) · 3.98 KB
/
[proc,script3156].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
// 3156
[proc,script3156](component $component0, boolean $boolean1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, string $string0, string $string1)
~deltooltip_action($component8);
%varcint218 = null;
cc_deleteall($component7);
def_int $int9 = 0;
def_int $int10 = 0;
def_component $component11 = null;
def_obj $obj12 = null;
def_int $int13 = 0;
def_enum $enum14 = enum_4956;
if (%varbit14826 = 1) {
$enum14 = enum_4959;
}
if ($component0 = $component2) {
if_sethide(false, $component2);
if_setonclick("script3155(null, $boolean1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1)", $component2);
if_sethide(true, $component3);
if_setonclick(null, $component3);
if_sethide(false, $component4);
if_sethide(false, $component5);
if_sethide(true, $component6);
while ($int10 < enum_getoutputcount($enum14)) {
$obj12 = enum(int, obj, $enum14, $int10);
$component11 = oc_param($obj12, param_1751);
if ($component11 ! null & cc_find($component11, 0) = ^true & .cc_find($component11, 1) = ^true) {
~prayer_updatebutton(true, $obj12, $component11, $component4, $component8);
}
$int10 = calc($int10 + 1);
}
$int10 = 0;
while ($int9 = 0) {
if (cc_find($component5, $int10) = ^true) {
cc_settrans(220);
} else {
$int9 = 1;
}
$int10 = calc($int10 + 1);
}
} else if ($component0 = $component3) {
if_sethide(true, $component2);
if_setonclick(null, $component2);
if_sethide(false, $component3);
if_setonclick("script3155(null, $boolean1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1)", $component3);
if_sethide(true, $component4);
if_sethide(true, $component5);
if_sethide(false, $component6);
$int10 = 0;
while ($int10 <= 4) {
cc_create($component7, ^iftype_rectangle, $int10);
cc_setfill(true);
cc_setcolour(^white);
~script3652(0);
cc_setop(1, "Change");
cc_setonop("prayer_filtertoggle_op(event_op, event_com, event_comsubid)");
$int10 = calc($int10 + 1);
}
$int10, $int13 = ~script3158(0, "Show lower tiers of tiered prayers", $component7, $int10, $int13);
$int10, $int13 = ~script3158(1, "Show tiered prayers even if multi-skill prayers are available", $component7, $int10, $int13);
$int10, $int13 = ~script3158(2, "Show <col=ffffff>Rapid Healing</col> prayers", $component7, $int10, $int13);
$int10, $int13 = ~script3158(3, "Show prayers you lack the Prayer level to activate", $component7, $int10, $int13);
$int10, $int13 = ~script3158(4, "Show prayers you lack the requirements to activate", $component7, $int10, $int13);
if_setsize(180, calc(28 + $int13), ^setsize_abs, ^setsize_abs, $component6);
} else {
if ($boolean1 = true) {
if_sethide(false, $component2);
if_setonclick("script3155($component2, $boolean1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1)", $component2);
} else {
if_sethide(true, $component2);
if_setonclick(null, $component2);
}
if (%varbit6579 = 0) {
if_sethide(false, $component3);
}
if_setonclick("script3155($component3, $boolean1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1)", $component3);
if_sethide(false, $component4);
if_sethide(true, $component5);
if_sethide(true, $component6);
$int10 = 0;
while ($int10 <= enum_getoutputcount($enum14)) {
$obj12 = enum(int, obj, $enum14, $int10);
$component11 = oc_param($obj12, param_1751);
if ($component11 ! null & cc_find($component11, 0) = ^true & .cc_find($component11, 1) = ^true) {
~prayer_updatebutton(false, $obj12, $component11, $component4, $component8);
}
$int10 = calc($int10 + 1);
}
}
if ($boolean1 = true & ($component0 = null | $component0 = $component2)) {
~button_setup($component0, $component2, $string0);
}
if ($component0 = null | $component0 = $component3) {
~button_setup($component0, $component3, $string1);
}