-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,interface_inv_update_big].cs2
23 lines (23 loc) · 1.2 KB
/
[proc,interface_inv_update_big].cs2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 153
[proc,interface_inv_update_big](component $component0, inv $inv1, int $int2, int $int3, int $int4, component $component5, string $string0, string $string1, string $string2, string $string3, string $string4, string $string5, string $string6, string $string7, string $string8)
cc_deleteall($component0);
def_int $int6 = 0;
def_int $int7 = 0;
if (if_getscrollwidth($component0) > 0) {
$int6 = calc((if_getscrollwidth($component0) - 36 * $int2) / ($int2 - 1));
} else {
$int6 = calc((if_getwidth($component0) - 36 * $int2) / ($int2 - 1));
}
if (if_getscrollheight($component0) > 0) {
$int7 = calc((if_getscrollheight($component0) - 32 * $int3) / ($int3 - 1));
} else {
$int7 = calc((if_getheight($component0) - 32 * $int3) / ($int3 - 1));
}
def_int $int8 = 0;
while ($int8 <= calc($int2 * $int3)) {
cc_create($component0, ^iftype_graphic, $int8);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc((36 + $int6) * ($int8 % $int2)), calc($int8 / $int2 * (32 + $int7)), ^setpos_abs_left, ^setpos_abs_top);
~interface_inv_draw_slot_big($inv1, $int8, $component0, $int8, $int4, $component5, $string0, $string1, $string2, $string3, $string4, $string5, $string6, $string7, $string8);
$int8 = calc($int8 + 1);
}