-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,gravestone_generic_size_handler].cs2
23 lines (23 loc) · 1.4 KB
/
[proc,gravestone_generic_size_handler].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 3469
[proc,gravestone_generic_size_handler](component $component0, component $component1, component $component2, int $int3, int $int4, int $int5, component $component6, int $int7, component $component8, int $int9, component $component10, component $component11, component $component12, component $component13, int $width14, int $int15)
def_int $width16 = if_getwidth($component0);
def_int $int17 = calc(if_getheight($component0) - $int3);
if ($width14 = $width16 & $int15 = $int17) {
return;
}
if (calc(if_getx($component1) + if_getwidth($component1)) >= calc($width14 - 10)) {
if (if_getx($component1) <= 10) {
%varcint395 = calc(%varcint395 + ($width16 - $width14));
} else {
%varcint397 = calc(%varcint397 + ($width16 - $width14));
}
}
if (calc(if_gety($component1) + if_getheight($component1)) >= calc($int15 - 10)) {
if (if_gety($component1) <= calc($int3 + 10)) {
%varcint396 = calc(%varcint396 + ($int17 - $int15));
} else {
%varcint398 = calc(%varcint398 + ($int17 - $int15));
}
}
~gravestone_generic_window_set($component0, $component1, $component2, $int3, $int4, $int5, $component6, $int7, $component8, $int9, $component10, $component11, $component12, $component13);
if_setontimer("gravestone_generic_size_handler($component0, $component1, $component2, $int3, $int4, $int5, $component6, $int7, $component8, $int9, $component10, $component11, $component12, $component13, $width16, $int17)", $component0);