mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 19:10:49 +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
|
if CursorHasItem() then
|
||||||
ClearCursor()
|
ClearCursor()
|
||||||
end
|
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
|
else
|
||||||
pfHookUseContainerItem(bag,slot)
|
pfHookUseContainerItem(bag,slot)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user