From 3d22490e15dcc7b940f6025a18556640258f0159 Mon Sep 17 00:00:00 2001 From: Vati Date: Sat, 28 Feb 2026 04:22:45 +0400 Subject: [PATCH] dropping on empty area --- UI/BagFrame.xml | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/UI/BagFrame.xml b/UI/BagFrame.xml index 21f5345..708eedf 100644 --- a/UI/BagFrame.xml +++ b/UI/BagFrame.xml @@ -742,16 +742,31 @@ - - + - + + + -- Drop item into first available bag slot + if CursorHasItem and CursorHasItem() then + if PutItemInBackpack then + PutItemInBackpack() + end + for bag = 1, 4 do + if CursorHasItem() then + local invSlot = ContainerIDToInventoryID(bag) + if PutItemInBag then + PutItemInBag(invSlot) + end + end + end + end + + @@ -779,6 +794,22 @@ this:StopMovingOrSizing() + + -- Drop item into first available bag slot + if CursorHasItem and CursorHasItem() then + if PutItemInBackpack then + PutItemInBackpack() + end + for bag = 1, 4 do + if CursorHasItem() then + local invSlot = ContainerIDToInventoryID(bag) + if PutItemInBag then + PutItemInBag(invSlot) + end + end + end + end +