mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 08:06:55 +00:00
bags: add right-click trigger for auction house
This commit is contained in:
@@ -54,6 +54,19 @@ pfUI:RegisterModule("bags", function ()
|
||||
if CursorHasItem() then
|
||||
ClearCursor()
|
||||
end
|
||||
elseif AuctionFrame and AuctionFrame:IsShown() and
|
||||
AuctionFrameBrowse and AuctionFrameBrowse:IsShown() then
|
||||
local link = GetContainerItemLink(bag,slot)
|
||||
local name = link and string.sub(link, string.find(link, "%[")+1, string.find(link, "%]")-1) or ""
|
||||
BrowseName:SetText(name)
|
||||
AuctionFrameBrowse_Search()
|
||||
elseif AuctionFrame and AuctionFrame:IsShown() and
|
||||
AuctionFrameAuctions and AuctionFrameAuctions:IsShown() then
|
||||
PickupContainerItem(bag,slot)
|
||||
AuctionsItemButton:Click()
|
||||
if CursorHasItem() then
|
||||
ClearCursor()
|
||||
end
|
||||
else
|
||||
pfHookUseContainerItem(bag,slot)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user