-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,worldswitcher_draw].cs2
100 lines (100 loc) · 5.29 KB
/
[proc,worldswitcher_draw].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
// 892
[proc,worldswitcher_draw](component $component0, component $component1, component $component2, component $component3, int $int4, int $int5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15)
if_setsize(0, $int5, ^setsize_minus, ^setsize_abs, $component6);
if_setsize(16, $int5, ^setsize_minus, ^setsize_minus, $component0);
if_setsize(16, $int5, ^setsize_abs, ^setsize_minus, $component1);
~worldswitcher_sortbutton_draw($component7, 2, 3, $component0, $component1, $component2, $component3, $int4, $int5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15);
~worldswitcher_sortbutton_draw($component8, 0, 1, $component0, $component1, $component2, $component3, $int4, $int5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15);
~worldswitcher_sortbutton_draw($component9, 4, 5, $component0, $component1, $component2, $component3, $int4, $int5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15);
~worldswitcher_sortbutton_draw($component10, 8, 9, $component0, $component1, $component2, $component3, $int4, $int5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15);
~worldswitcher_sortbutton_draw($component11, 6, 7, $component0, $component1, $component2, $component3, $int4, $int5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15);
switch_int (%varbit4596) {
case 2 :
worldlist_sort(7, false, 0, false);
case 3 :
worldlist_sort(7, true, 0, false);
case 4 :
worldlist_sort(2, false, 0, false);
case 5 :
worldlist_sort(2, true, 0, false);
case 8 :
worldlist_sort(1, false, 0, false);
case 9 :
worldlist_sort(1, true, 0, false);
case 6 :
worldlist_sort(3, false, 0, false);
case 7 :
worldlist_sort(3, true, 0, false);
case 1 :
worldlist_sort(0, true, 7, false);
case default :
worldlist_sort(0, false, 7, false);
}
def_int $height16 = 0;
def_int $width17 = if_getwidth($component7);
def_int $width18 = if_getwidth($component8);
def_int $width19 = if_getwidth($component9);
def_int $width20 = if_getwidth($component10);
def_int $width21 = if_getwidth($component11);
cc_deleteall($component2);
def_int $int22 = ~stat_totallevel;
def_int $int23 = ~stat_f2plevel;
def_int $int24 = 0;
def_int $world25 = 0;
def_int $flags26 = 0;
def_string $string0 = "";
def_int $int27 = -1;
def_int $int28 = 0;
def_string $string1 = "";
$world25, $flags26, $string0, $int27, $int28, $string1 = worldlist_start;
while ($world25 > 0) {
if (~script961($world25, $flags26) = 1) {
$int24 = ~worldswitcher_entry_draw($component2, $int24, $height16, $component3, $world25, $world25, $flags26, $string0, $int27, $int28, $int4, $width17, $width18, $width19, $width20, $width21, $int22, $int23, $component15);
$height16 = calc($height16 + $int4);
}
$world25, $flags26, $string0, $int27, $int28, $string1 = worldlist_next;
}
if ($height16 > if_getheight($component0)) {
if_setscrollsize(0, $height16, $component0);
} else {
if_setscrollsize(0, 0, $component0);
}
if_setsize(0, $height16, ^setsize_minus, ^setsize_abs, $component3);
if_setsize(0, $height16, ^setsize_minus, ^setsize_abs, $component2);
if (%varcint69 < 0) {
%varcint69 = 0;
}
~scrollbar_resize($component1, $component0, %varcint69);
cc_deleteall($component12);
cc_deleteall($component13);
def_int $x29 = calc(if_getwidth($component12) - ($width17 + $width18 + $width19 + $width20));
if (%varbit4597 > 0) {
if_sethide(true, $component14);
$world25, $flags26, $string0, $int27, $int28, $string1 = worldlist_specific(%varbit4597);
if (~script961($world25, $flags26) = 0) {
$world25, $string0, $int27, $int28 = 0, "Unavailable", -1, 0;
}
~worldswitcher_entry_draw($component12, 0, 0, $component12, -1, $world25, $flags26, $string0, $int27, $int28, $int4, $width17, $width18, $width19, $width20, $x29, $int22, $int23, $component15);
if (%varbit4598 > 0) {
$world25, $flags26, $string0, $int27, $int28, $string1 = worldlist_specific(%varbit4598);
if (~script961($world25, $flags26) = 0) {
$world25, $string0, $int27, $int28 = 0, "Unavailable", -1, 0;
}
~worldswitcher_entry_draw($component13, 0, 0, $component13, -1, $world25, $flags26, $string0, $int27, $int28, $int4, $width17, $width18, $width19, $width20, $x29, $int22, $int23, $component15);
} else {
~worldswitcher_wipe_favourite($component13);
}
} else {
~worldswitcher_wipe_favourite($component12);
if (%varbit4598 > 0) {
if_sethide(true, $component14);
$world25, $flags26, $string0, $int27, $int28, $string1 = worldlist_specific(%varbit4598);
if (~script961($world25, $flags26) = 0) {
$world25, $string0, $int27, $int28 = 0, "Unavailable", -1, 0;
}
~worldswitcher_entry_draw($component13, 0, 0, $component13, -1, $world25, $flags26, $string0, $int27, $int28, $int4, $width17, $width18, $width19, $width20, $x29, $int22, $int23, $component15);
} else {
if_sethide(false, $component14);
~worldswitcher_wipe_favourite($component13);
}
}