bags: add items into trade with right click

This commit is contained in:
shagu
2018-05-26 00:59:12 +02:00
parent 1a75f3271f
commit 7328cf9937
+14
View File
@@ -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)