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 +