bags: add right-click trigger for auction house

This commit is contained in:
shagu
2018-06-08 17:27:39 +02:00
parent 26249411be
commit b38b295034
+13
View File
@@ -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