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,pvpa_board_setsort].cs2
57 lines (57 loc) · 1.88 KB
/
[proc,pvpa_board_setsort].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
// 6228
[proc,pvpa_board_setsort]
~pvpa_board_sortbutton_draw(interface_767:16, "Owners Name", 1, 2);
~pvpa_board_sortbutton_draw(interface_767:17, "Size", 3, 4);
~pvpa_board_sortbutton_draw(interface_767:18, "Created", 5, 0);
def_int $intarray0(47);
def_int $int0 = 0;
def_int $int1 = 0;
while ($int1 < 47) {
if (cc_find(enum(int, component, enum_4403, $int1), 0) = ^true) {
$intarray0($int0) = $int1;
$int0 = calc($int0 + 1);
}
$int1 = calc($int1 + 1);
}
def_string $string0 = "";
if ($int0 >= 2) {
switch_int (%varcint992) {
case 1, 2 :
~raids_partylist_sort(intarray0, 0, calc($int0 - 1), 1, enum_4403);
case 3, 4 :
~raids_partylist_sort(intarray0, 0, calc($int0 - 1), 10, enum_4403);
case default :
~raids_partylist_sort(intarray0, 0, calc($int0 - 1), 9, enum_4403);
}
}
def_int $int2 = 0;
def_int $int3 = 0;
def_component $component4 = null;
def_string $string1 = "";
switch_int (%varcint992) {
case 2, 4, 0 :
$int2 = $int0;
while ($int2 > 0) {
$int2 = calc($int2 - 1);
$component4 = enum(int, component, enum_4403, $intarray0($int2));
if ($component4 ! null) {
if_setposition(0, $int3, ^setpos_abs_centre, ^setpos_abs_top, $component4);
if (cc_find($component4, 0) = ^true & .cc_find($component4, 1) = ^true) {
~pvpa_board_entry_init($int2, $component4, $intarray0($int2), .cc_gettext, interface_767:19);
}
$int3 = calc($int3 + if_getheight($component4));
}
}
case default :
while ($int2 < $int0) {
$component4 = enum(int, component, enum_4403, $intarray0($int2));
if ($component4 ! null) {
if_setposition(0, $int3, ^setpos_abs_centre, ^setpos_abs_top, $component4);
if (cc_find($component4, 0) = ^true & .cc_find($component4, 1) = ^true) {
~pvpa_board_entry_init($int2, $component4, $intarray0($int2), .cc_gettext, interface_767:19);
}
$int3 = calc($int3 + if_getheight($component4));
}
$int2 = calc($int2 + 1);
}
}