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,worldswitcher_draw].cs2
131 lines (131 loc) · 8.03 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// 892
[proc,worldswitcher_draw](component $component0, component $component1, component $component2, component $component3, component $component4, int $int5, int $int6, int $int7, graphic $graphic8, fontmetrics $fontmetrics9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19)
if_setsize(0, $int7, ^setsize_minus, ^setsize_abs, $component10);
if_setsize(16, $int7, ^setsize_minus, ^setsize_minus, $component1);
if_setsize(16, $int7, ^setsize_abs, ^setsize_minus, $component2);
~worldswitcher_sortbutton_draw($component11, 2, 3, $component0, $component1, $component2, $component3, $component4, $int5, $int6, $int7, $graphic8, $fontmetrics9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19);
~worldswitcher_sortbutton_draw($component12, 0, 1, $component0, $component1, $component2, $component3, $component4, $int5, $int6, $int7, $graphic8, $fontmetrics9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19);
~worldswitcher_sortbutton_draw($component13, 4, 5, $component0, $component1, $component2, $component3, $component4, $int5, $int6, $int7, $graphic8, $fontmetrics9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19);
~worldswitcher_sortbutton_draw($component14, 8, 9, $component0, $component1, $component2, $component3, $component4, $int5, $int6, $int7, $graphic8, $fontmetrics9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19);
~worldswitcher_sortbutton_draw($component15, 6, 7, $component0, $component1, $component2, $component3, $component4, $int5, $int6, $int7, $graphic8, $fontmetrics9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19);
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 $int20 = 0;
while ($int20 <= 600) {
if (cc_find($component4, $int20) = ^true) {
cc_sethide(true);
}
$int20 = calc($int20 + 1);
}
if ($component19 ! null) {
~deltooltip_action($component19);
}
def_int $width21 = if_getwidth($component11);
def_int $width22 = if_getwidth($component12);
def_int $width23 = if_getwidth($component13);
def_int $width24 = if_getwidth($component14);
def_int $width25 = if_getwidth($component15);
def_int $int26 = ~stat_totallevel;
def_int $int27 = ~stat_f2plevel;
def_component $layer28 = if_getlayer($component0);
cc_deleteall($component3);
$int20 = 0;
def_int $height29 = 0;
switch_int (%varbit4596) {
case default :
$int20, $height29 = ~script7273($component3, $int20, $height29, -1, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
case 4 :
$int20, $height29 = ~script7273($component3, $int20, $height29, -42, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
$int20, $height29 = ~script7273($component3, $int20, $height29, 0, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
$int20, $height29 = ~script7273($component3, $int20, $height29, -73, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
$int20, $height29 = ~script7273($component3, $int20, $height29, -69, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
case 5 :
$int20, $height29 = ~script7273($component3, $int20, $height29, -69, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
$int20, $height29 = ~script7273($component3, $int20, $height29, -73, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
$int20, $height29 = ~script7273($component3, $int20, $height29, 0, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
$int20, $height29 = ~script7273($component3, $int20, $height29, -42, $component4, $int5, $graphic8, $fontmetrics9, $width21, $width22, $width23, $width24, $width25, $int26, $int27, $layer28, $component19);
}
if ($int20 <= 0) {
cc_create($component3, ^iftype_text, $int20);
cc_setsize(10, 100, ^setsize_minus, ^setsize_abs);
$int20, $height29 = calc($int20 + 1), calc($height29 + 100);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext("Please review your filter settings.");
}
if ($height29 > if_getheight($component1)) {
if_setscrollsize(0, $height29, $component1);
} else {
if_setscrollsize(0, 0, $component1);
}
if_setsize(0, $height29, ^setsize_minus, ^setsize_abs, $component4);
if_setsize(0, $height29, ^setsize_minus, ^setsize_abs, $component3);
if ($layer28 ! null) {
%varcint63 = ~max(0, %varcint63);
~worldswitcher_options_setsize($layer28, $component0, $component2, $component1, $int6, $int7, ~max(180, $height29), if_getheight($layer28));
} else {
%varcint69 = ~max(0, %varcint69);
~scrollbar_resize($component2, $component1, %varcint69);
}
cc_deleteall($component16);
cc_deleteall($component17);
def_int $x30 = calc(if_getwidth($component16) - ($width21 + $width22 + $width23 + $width24));
def_int $world31 = 0;
def_int $flags32 = 0;
def_string $string0 = "";
def_int $int33 = -1;
def_int $int34 = 0;
def_string $string1 = "";
if (%varbit4597 > 0) {
if_sethide(true, $component18);
$world31, $flags32, $string0, $int33, $int34, $string1 = ~worldswitcher_list_specific(%varbit4597);
if (~script961($world31, $flags32) = 0) {
$world31, $string0, $int33, $int34 = 0, "Unavailable", -1, 0;
}
~worldswitcher_entry_draw($component16, 0, 0, $component16, -1, $world31, $flags32, $string0, $int33, $int34, $int5, $graphic8, $fontmetrics9, -1, $width21, $width22, $width23, $width24, $x30, $int26, $int27, $component19);
if (%varbit4598 > 0) {
$world31, $flags32, $string0, $int33, $int34, $string1 = ~worldswitcher_list_specific(%varbit4598);
if (~script961($world31, $flags32) = 0) {
$world31, $string0, $int33, $int34 = 0, "Unavailable", -1, 0;
}
~worldswitcher_entry_draw($component17, 0, 0, $component17, -1, $world31, $flags32, $string0, $int33, $int34, $int5, $graphic8, $fontmetrics9, -1, $width21, $width22, $width23, $width24, $x30, $int26, $int27, $component19);
} else {
~worldswitcher_wipe_favourite($component17);
}
} else {
~worldswitcher_wipe_favourite($component16);
if (%varbit4598 > 0) {
if_sethide(true, $component18);
$world31, $flags32, $string0, $int33, $int34, $string1 = ~worldswitcher_list_specific(%varbit4598);
if (~script961($world31, $flags32) = 0) {
$world31, $string0, $int33, $int34 = 0, "Unavailable", -1, 0;
}
~worldswitcher_entry_draw($component17, 0, 0, $component17, -1, $world31, $flags32, $string0, $int33, $int34, $int5, $graphic8, $fontmetrics9, -1, $width21, $width22, $width23, $width24, $x30, $int26, $int27, $component19);
} else {
if_sethide(false, $component18);
~worldswitcher_wipe_favourite($component17);
}
}