-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,interface_inv_draw_slot_big].cs2
46 lines (46 loc) · 1.79 KB
/
[proc,interface_inv_draw_slot_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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// 154
[proc,interface_inv_draw_slot_big](inv $inv0, int $slot1, component $component2, int $comsubid3, int $int4, component $component5, string $string0, string $string1, string $string2, string $string3, string $string4, string $string5, string $string6, string $string7, string $string8)
def_obj $obj6 = null;
if (cc_find($component2, $comsubid3) = ^true) {
$obj6 = inv_getobj($inv0, $slot1);
if ($obj6 ! null) {
cc_setobject($obj6, inv_getnum($inv0, $slot1));
cc_setopbase("<col=ff9040><oc_name($obj6)></col>");
cc_setop(1, $string0);
cc_setop(2, $string1);
cc_setop(3, $string2);
cc_setop(4, $string3);
cc_setop(5, $string4);
cc_setop(6, $string5);
cc_setop(7, $string6);
cc_setop(8, $string7);
cc_setop(9, $string8);
cc_setop(10, "Examine");
if ($int4 > 0) {
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
}
if ($int4 = 1) {
cc_setondragcomplete("interface_inv_dragcomplete_swap_big($inv0, event_comsubid, event_dropsubid, event_com, $int4, $component5, $string0, $string1, $string2, $string3, $string4, $string5, $string6, $string7, $string8)");
} else if ($int4 = 2) {
cc_setondragcomplete("interface_inv_dragcomplete_shuffle_big($inv0, event_comsubid, event_dropsubid, event_com, $int4, $component5, $string0, $string1, $string2, $string3, $string4, $string5, $string6, $string7, $string8)");
}
if ($int4 ! 0 & $component5 ! null) {
cc_setondrag("interface_inv_drag_slot($slot1, $component2, $component5, event_mousey)");
}
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setonop("cc_settrans_temporarily(event_com, event_comsubid, 100, 0)");
} else {
cc_setobject(null, 0);
cc_setopbase("");
cc_clearops;
if ($int4 > 0) {
cc_setdragdeadzone(0);
cc_setdragdeadtime(0);
}
cc_setondragcomplete(null);
cc_setonop(null);
}
cc_settrans(0);
}