-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,worldmap_maplist_open].cs2
55 lines (55 loc) · 1.63 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
// 1708
[clientscript,worldmap_maplist_open](component $component0, component $component1, component $component2, int $x3, int $z4)
sound_synth(interface_select1, 1, 0);
~xpdrops_setup_display_hoverdisable($component0);
if_sethide(false, $component1);
def_int $y5 = ^min_32bit_int;
def_int $y6 = ^min_32bit_int;
def_int $int7 = 0;
def_maparea $maparea8 = null;
while ($int7 <= 39) {
$maparea8 = enum(int, maparea, enum_1697, $int7);
if ($maparea8 ! null & cc_find($component2, calc($int7 + 1)) = ^true) {
if (~worldmap_findcoordinmap($maparea8, %varcint188) ! null) {
if (~on_mobile = false) {
$y5 = calc(cc_gety - 1);
} else {
$y5 = calc(cc_gety + 3);
}
}
if (~worldmap_findcoordinmap($maparea8, %varcint401) ! null) {
if (~on_mobile = false) {
$y6 = calc(cc_gety - 1);
} else {
$y6 = calc(cc_gety + 3);
}
}
}
$int7 = calc($int7 + 1);
}
if (cc_find($component2, $x3) = ^true & .cc_find($component2, $z4) = ^true) {
if ($y5 ! ^min_32bit_int) {
if ($y6 ! ^min_32bit_int) {
cc_sethide(false);
.cc_sethide(false);
if ($y5 = $y6) {
cc_setposition(0, $y5, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(3, $y6, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_setposition(1, $y5, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(1, $y6, ^setpos_abs_left, ^setpos_abs_top);
}
} else {
cc_sethide(false);
.cc_sethide(true);
cc_setposition(1, $y5, ^setpos_abs_left, ^setpos_abs_top);
}
} else if ($y6 ! ^min_32bit_int) {
cc_sethide(true);
.cc_sethide(false);
.cc_setposition(1, $y6, ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_sethide(true);
.cc_sethide(true);
}
}