Make Extras ClassicAPI-first

This commit is contained in:
Dusk-92
2026-08-30 11:18:37 +02:00
parent 264ee583c0
commit 5ec909cd56
8 changed files with 47 additions and 77 deletions
+3 -4
View File
@@ -1,6 +1,6 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local API = ShaguTweaks.API or {}
local API = ShaguTweaks.API
local hooksecurefunc = ShaguTweaks.hooksecurefunc
local module = ShaguTweaks:register({
@@ -26,8 +26,7 @@ module.enable = function(self)
end
local function ShiftDown()
if API.IsShiftKeyDown then return API.IsShiftKeyDown() end
return IsShiftKeyDown()
return API.IsShiftKeyDown()
end
-- Interception is intentional here: the feature must be able to suppress the
@@ -44,7 +43,7 @@ module.enable = function(self)
end
elseif IsAuctionBrowsing() and not ShiftDown() then
-- search item in auction house
local link = GetContainerItemLink(bag, slot)
local link = API.GetContainerItemLink(bag, slot)
local name = link and string.sub(link, string.find(link, "%[")+1, string.find(link, "%]")-1) or ""
BrowseName:SetText(name)
AuctionFrameBrowse_Search()