-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[proc,raids_storage_private_items].cs2
More file actions
31 lines (31 loc) · 1.07 KB
/
[proc,raids_storage_private_items].cs2
File metadata and controls
31 lines (31 loc) · 1.07 KB
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
// 1607
[proc,raids_storage_private_items](component $component0, component $component1, component $component2)
cc_deleteall($component0);
def_int $size3 = 0;
def_int $size4 = inv_size(inv_583);
def_int $height5 = 0;
def_obj $obj6 = null;
def_int $int7 = 0;
while ($size3 < $size4) {
$obj6 = inv_getobj(inv_583, $size3);
cc_create($component0, ^iftype_graphic, $size3);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
$height5 = calc($size3 / 8 * (32 + 8));
cc_setposition(calc($size3 % 8 * (36 + 8)), $height5, ^setpos_abs_left, ^setpos_abs_top);
cc_setoutline(1);
cc_setgraphicshadow(0x333333);
$int7 = ~raids_storage_private_drawitem($obj6, inv_getnum(inv_583, $size3), $int7, $component1);
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
$size3 = calc($size3 + 1);
}
def_int $int8 = 0;
$height5 = calc($height5 + 32);
if ($height5 > if_getheight($component0)) {
$int8 = if_getscrolly($component0);
if_setscrollsize(0, $height5, $component0);
} else {
if_setscrollsize(0, 0, $component0);
}
~scrollbar_resize($component1, $component0, $int8);
if_settext(tostring($int7), $component2);