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[clientscript,worldmap_maplist_open].cs2
78 lines (78 loc) · 2.12 KB
/
[clientscript,worldmap_maplist_open].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
// 1708
[clientscript,worldmap_maplist_open](component $component0, component $component1, component $component2, int $comsubid3, int $comsubid4, int $comsubid5)
sound_synth(interface_select1, 1, 0);
~xpdrops_setup_display_hoverdisable($component0);
if_sethide(false, $component1);
def_int $y6 = ^min_32bit_int;
def_int $y7 = ^min_32bit_int;
def_int $y8 = ^min_32bit_int;
def_int $int9 = 0;
def_wma $wma10 = null;
while ($int9 <= 44) {
$wma10 = enum(int, wma, enum_1697, $int9);
if ($wma10 ! null & cc_find($component2, calc($int9 + 1)) = ^true) {
if (~worldmap_findcoordinmap($wma10, %varcint188) ! null & cc_gethide = false) {
if (~on_mobile = false) {
$y6 = calc(cc_gety - 1);
} else {
$y6 = calc(cc_gety + 3);
}
}
if (~worldmap_findcoordinmap($wma10, %varcint1078) ! null & cc_gethide = false) {
if (~on_mobile = false) {
$y7 = calc(cc_gety - 1);
} else {
$y7 = calc(cc_gety + 3);
}
}
if (~worldmap_findcoordinmap($wma10, %varcint401) ! null & cc_gethide = false) {
if (~on_mobile = false) {
$y8 = calc(cc_gety - 1);
} else {
$y8 = calc(cc_gety + 3);
}
}
}
$int9 = calc($int9 + 1);
}
def_int $x11 = 1;
def_int $x12 = 1;
def_int $x13 = 1;
if ($y6 = $y7) {
if ($y6 = $y8) {
$x11, $x12, $x13 = 0, 2, 4;
} else {
$x11, $x12 = 0, 3;
}
} else if ($y6 = $y8) {
$x11, $x13 = 0, 3;
} else if ($y7 = $y8) {
$x12, $x13 = 0, 3;
}
if (cc_find($component2, $comsubid3) = ^true) {
if ($y6 ! ^min_32bit_int) {
cc_sethide(false);
cc_setposition($x11, $y6, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_sethide(true);
cc_setposition(1, $y6, ^setpos_abs_left, ^setpos_abs_top);
}
}
if (cc_find($component2, $comsubid4) = ^true) {
if ($y7 ! ^min_32bit_int) {
cc_sethide(false);
cc_setposition($x12, $y7, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_sethide(true);
cc_setposition(1, $y7, ^setpos_abs_left, ^setpos_abs_top);
}
}
if (cc_find($component2, $comsubid5) = ^true) {
if ($y8 ! ^min_32bit_int) {
cc_sethide(false);
cc_setposition($x13, $y8, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_sethide(true);
cc_setposition(1, $y8, ^setpos_abs_left, ^setpos_abs_top);
}
}