mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
bags: add items into trade with right click
This commit is contained in:
@@ -45,6 +45,20 @@ pfUI:RegisterModule("bags", function ()
|
|||||||
return
|
return
|
||||||
end
|
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
|
-- hide blizzard's bankframe
|
||||||
BankFrame:SetScale(0.001)
|
BankFrame:SetScale(0.001)
|
||||||
BankFrame:SetPoint("TOPLEFT", 0,0)
|
BankFrame:SetPoint("TOPLEFT", 0,0)
|
||||||
|
|||||||
Reference in New Issue
Block a user