mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 10:26:02 +00:00
bags: add items into trade with right click
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user