-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,worldmap_window_set].cs2
49 lines (49 loc) · 2.62 KB
/
[proc,worldmap_window_set].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
// 1745
[proc,worldmap_window_set](component $component0, component $component1, component $component2, component $component3, int $int4)
if_sethide(true, $component2);
if_sethide(false, $component3);
if (~toplevel_getcomponents = enum_1132) {
if_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre, $component1);
if_setsize(0, 0, ^setsize_minus, ^setsize_minus, $component1);
return;
}
%varcint191 = ~max(~min(%varcint191, calc(if_getwidth($component0) - $int4)), 0);
%varcint192 = ~max(~min(%varcint192, calc(if_getheight($component0) - 280)), 0);
%varcint193, %varcint194 = ~max(~min(%varcint193, %varcint191), 0), ~max(~min(%varcint194, %varcint192), 0);
if_setposition(%varcint193, %varcint194, ^setpos_abs_left, ^setpos_abs_top, $component1);
if_setsize(%varcint191, %varcint192, ^setsize_minus, ^setsize_minus, $component1);
def_int $width5 = calc(%varcint191 + 6 * 2);
def_int $height6 = calc(%varcint192 + 6 * 2);
def_int $x7 = calc(%varcint191 - %varcint193);
def_int $y8 = calc(%varcint192 - %varcint194);
def_int $int9 = 0;
if (cc_find($component0, 0) = ^true & .cc_find($component0, 1) = ^true) {
cc_setsize($width5, 6, ^setsize_minus, ^setsize_abs);
.cc_setsize($width5, 6, ^setsize_minus, ^setsize_abs);
$int9 = calc(%varcint193 + 6);
cc_setposition($int9, %varcint194, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition($int9, $y8, ^setpos_abs_left, ^setpos_abs_bottom);
~script1746($component0, $component1, $component2, $component3, $int4);
}
if (cc_find($component0, 2) = ^true & .cc_find($component0, 3) = ^true) {
cc_setsize(6, $height6, ^setsize_abs, ^setsize_minus);
.cc_setsize(6, $height6, ^setsize_abs, ^setsize_minus);
$int9 = calc(%varcint194 + 6);
cc_setposition(%varcint193, $int9, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition($x7, $int9, ^setpos_abs_right, ^setpos_abs_top);
~script1746($component0, $component1, $component2, $component3, $int4);
}
if (cc_find($component0, 4) = ^true & .cc_find($component0, 5) = ^true) {
cc_setsize(6, 6, ^setsize_abs, ^setsize_abs);
.cc_setsize(6, 6, ^setsize_abs, ^setsize_abs);
cc_setposition(%varcint193, %varcint194, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition($x7, %varcint194, ^setpos_abs_right, ^setpos_abs_top);
~script1746($component0, $component1, $component2, $component3, $int4);
}
if (cc_find($component0, 6) = ^true & .cc_find($component0, 7) = ^true) {
cc_setsize(6, 6, ^setsize_abs, ^setsize_abs);
.cc_setsize(6, 6, ^setsize_abs, ^setsize_abs);
cc_setposition(%varcint193, $y8, ^setpos_abs_left, ^setpos_abs_bottom);
.cc_setposition($x7, $y8, ^setpos_abs_right, ^setpos_abs_bottom);
~script1746($component0, $component1, $component2, $component3, $int4);
}