From 7328cf9937f92c80a04ebcd82201c0096ea52185 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 26 May 2018 00:59:12 +0200 Subject: [PATCH] bags: add items into trade with right click --- modules/bags.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/bags.lua b/modules/bags.lua index 0772b8de..25819121 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -45,6 +45,20 @@ pfUI:RegisterModule("bags", function () return end + local pfHookUseContainerItem = _G.UseContainerItem + function _G.UseContainerItem(bag,slot) + if TradeFrame:IsShown() then + PickupContainerItem(bag,slot) + local slot = TradeFrame_GetAvailableSlot() + if slot then ClickTradeButton(slot) end + if CursorHasItem() then + ClearCursor() + end + else + pfHookUseContainerItem(bag,slot) + end + end + -- hide blizzard's bankframe BankFrame:SetScale(0.001) BankFrame:SetPoint("TOPLEFT", 0,0)