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,prayer_redraw].cs2
70 lines (70 loc) · 2.75 KB
/
[proc,prayer_redraw].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
// 547
[proc,prayer_redraw](boolean $boolean0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, string $string0, string $string1)
def_int $count9 = 0;
while ($count9 < enum_getoutputcount(enum_864)) {
if_sethide(true, enum(int, component, enum_864, $count9));
$count9 = calc($count9 + 1);
}
def_enum $enum10 = enum_4956;
if (%varbit14826 = 1) {
$enum10 = enum_4959;
}
def_int $countarray0(enum_getoutputcount($enum10));
def_int $int11 = 0;
def_component $component12 = null;
def_int $count13 = 0;
def_obj $obj14 = null;
~script3154($component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1);
while ($count13 < enum_getoutputcount($enum10)) {
$obj14 = enum(int, obj, $enum10, $count13);
$component12 = oc_param($obj14, param_1751);
if ($component12 ! null) {
$countarray0($int11) = $count13;
$int11 = calc($int11 + 1);
cc_deleteall($component12);
cc_create($component12, ^iftype_graphic, 0);
cc_setsize(34, 34, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
if (%varbit14826 = 1) {
cc_setgraphic("prayerglow,1");
} else {
cc_setgraphic("prayerglow,0");
}
.cc_create($component12, ^iftype_graphic, 1);
.cc_setsize(30, 30, ^setsize_abs, ^setsize_abs);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
~prayer_updatebutton(false, $obj14, $component12, $component2, $component8);
}
$count13 = calc($count13 + 1);
}
if ($int11 > 0) {
~prayer_quicksort(countarray0, 0, calc($int11 - 1));
}
def_int $width15 = if_getwidth(oc_param($obj14, param_1751));
def_int $int16 = calc((if_getwidth($component2) - 5 * $width15) / 4 + $width15);
def_int $int17 = 0;
def_int $int18 = 0;
def_int $int19 = 0;
if ($boolean0 = false & %varbit6579 = 1) {
while ($int18 < $int11) {
$obj14 = enum(int, obj, $enum10, $countarray0($int18));
$int17 = calc($int18 / 5 * $int16);
if_setposition(calc($int18 % 5 * $int16), $int17, ^setpos_abs_left, ^setpos_abs_top, oc_param($obj14, param_1751));
if_sethide(false, oc_param($obj14, param_1751));
$int18 = calc($int18 + 1);
}
} else {
while ($int18 < $int11) {
$obj14 = enum(int, obj, $enum10, $countarray0($int18));
if (~prayer_passfilter($obj14) = 1) {
if_sethide(false, oc_param($obj14, param_1751));
$int17 = calc($int19 / 5 * $int16);
if_setposition(calc($int19 % 5 * $int16), $int17, ^setpos_abs_left, ^setpos_abs_top, oc_param($obj14, param_1751));
$int19 = calc($int19 + 1);
} else {
if_sethide(true, oc_param($obj14, param_1751));
}
$int18 = calc($int18 + 1);
}
}
if_setsize(0, calc(4 + $int17 + 34 + 4), ^setsize_minus, ^setsize_abs, $component4);