From b38b29503448df42e7e5a016ae1f67f30f2e13b4 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 8 Jun 2018 17:27:39 +0200 Subject: [PATCH] bags: add right-click trigger for auction house --- modules/bags.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/bags.lua b/modules/bags.lua index 25819121..721453ed 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -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