-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,gim_options_setsize].cs2
25 lines (25 loc) · 1.17 KB
/
[proc,gim_options_setsize].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
// 3168
[proc,gim_options_setsize](int $int0, component $component1, component $component2, int $int3, component $component4, component $component5, component $component6, int $height7)
def_int $int8 = 54;
def_int $int9 = ~min(calc($height7 - 10), calc($int8 + $int0));
if_setsize(if_getwidth($component6), $int9, ^setsize_abs, ^setsize_abs, $component6);
def_int $int10 = calc($int9 - $int8);
if ($int0 > $int10) {
if_setscrollsize(0, $int0, $component1);
~scrollbar_resize($component2, $component1, ~min(calc($int0 - $int10), ~max(0, %varcint63)));
} else {
if_setscrollpos(0, 0, $component1);
if_setscrollsize(0, 0, $component1);
~scrollbar_resize($component2, $component1, 0);
}
$int8 = calc($int8 + 45);
$int10 = calc($int9 - $int8);
if ($int3 > $int10) {
if_setscrollsize(0, $int3, $component4);
~scrollbar_resize($component5, $component4, ~min(calc($int3 - $int10), ~max(0, %varcint49)));
} else {
if_setscrollpos(0, 0, $component4);
if_setscrollsize(0, 0, $component4);
~scrollbar_resize($component5, $component4, 0);
}
if_setontimer("gim_options_checksize($int0, $component1, $component2, $int3, $component4, $component5, $component6, $height7)", if_getlayer($component6));