- Joined
- Sep 3, 2013
- Messages
- 903
- Reaction score
- 227
Hello, i try make trash item , is work but
I do not know how to put a condition to drag an item to a particular place
I think I have to use a maske :
I have idea
I try use code for inventory move item in backpack
I need put mask for use that ? DraggedItem is warz.pause.TrashMenu
I do not know how to put a condition to drag an item to a particular place
I think I have to use a maske :
I have idea
Code:
if (isOK &&
(DraggedItem is warz.pause.InvBackpackHotSlot ||
DraggedItem is warz.pause.InvBackpackSlot ||
DraggedItem is warz.pause.InvMainSlotLong ||
DraggedItem is warz.pause.InvMainSlotShort))
{
I try use code for inventory move item in backpack
I need put mask for use that ? DraggedItem is warz.pause.TrashMenu
Code:
if ((DraggedItem is warz.pause.TrashMenu))
{
var dropSlot = curSlot;
PauseEvents.eventTrashItem (dropSlot, 1);
}
Attachments
You must be registered for see attachments list