-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,wom_item_display].cs2
61 lines (61 loc) · 1.95 KB
/
[proc,wom_item_display].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
50
51
52
53
54
55
56
57
58
59
60
61
// 704
[proc,wom_item_display](component $component0, component $component1, int $int2, int $int3, int $int4, int $int5, int $int6)(int, int, int)
def_enum $enum7 = enum(int, enum, enum_2070, $int2);
def_int $int8 = 0;
def_int $int9 = 0;
def_int $int10 = 0;
def_namedobj $namedobj11 = null;
def_int $int12 = calc(36 / 2);
def_int $int13 = calc(32 / 2);
if ($int5 = 0) {
$int5 = $int12;
}
if ($int6 = 0) {
$int6 = $int13;
}
def_enum $enum14 = enum(int, enum, $enum7, $int9);
def_int $num15 = 0;
def_int $int16 = 0;
while ($enum14 ! null) {
$int10 = enum_getoutputcount($enum14);
$int16 = 0;
if ($int2 = 1) {
if (~quest_status_get(enum(enum, dbrow, enum_2074, $enum14)) = 2) {
$int16 = 1;
}
} else if ($int2 = 2 & ~quest_status_get(enum(enum, dbrow, enum_2075, $enum14)) = 2) {
$int16 = 1;
}
while ($int8 < $int10) {
$namedobj11 = enum(int, namedobj, $enum14, $int8);
cc_create($component0, ^iftype_graphic, calc($int8 + $int3));
$num15 = calc(inv_total(bank, $namedobj11) + inv_total(inv, $namedobj11) + inv_total(worn, $namedobj11));
if ($num15 > 0 & $int16 = 1) {
cc_setposition($int5, $int6, ^setpos_abs_left, ^setpos_abs_top);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setobject($namedobj11, $num15);
cc_setop(1, "Remove");
cc_setop(2, "Examine");
cc_setoutline(1);
cc_setopbase("<col=ff9040><oc_name($namedobj11)></col>");
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
cc_setonop("wom_item_hide(event_comsubid, $component0, event_op, $component1)");
cc_setondragcomplete("wom_item_move(event_comsubid, event_com, event_com2)");
$int5 = calc($int5 + 3 * $int12);
if ($int5 >= calc(if_getwidth($component0) - $int12)) {
$int6 = calc($int6 + 3 * $int13);
$int5 = $int12;
}
} else {
cc_sethide(true);
}
$int8 = calc($int8 + 1);
}
$int3 = calc($int3 + $int8);
$int8 = 0;
$int9 = calc($int9 + 1);
$enum14 = enum(int, enum, $enum7, $int9);
}
$int4 = calc($int6 + 2 * $int13);
return($int4, $int5, $int6);