mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
skins: only modify existing auction buttons
This commit is contained in:
@@ -58,15 +58,23 @@ pfUI:RegisterSkin("Auctionhouse", "vanilla:tbc", function ()
|
||||
|
||||
for i = 1, NUM_BROWSE_TO_DISPLAY do
|
||||
local button = _G["BrowseButton"..i]
|
||||
StripTextures(button, nil, "BACKGROUND")
|
||||
CreateBackdrop(button, nil, true)
|
||||
button:GetHighlightTexture():SetHeight(40)
|
||||
if button then
|
||||
StripTextures(button, nil, "BACKGROUND")
|
||||
CreateBackdrop(button, nil, true)
|
||||
|
||||
local highlight = button:GetHighlightTexture()
|
||||
if highlight then
|
||||
highlight:SetHeight(40)
|
||||
end
|
||||
end
|
||||
|
||||
local item = _G["BrowseButton"..i.."Item"]
|
||||
StripTextures(item)
|
||||
SkinButton(item, nil, nil, nil, nil, true)
|
||||
item:ClearAllPoints()
|
||||
item:SetPoint("LEFT", 2, 0)
|
||||
if item then
|
||||
StripTextures(item)
|
||||
SkinButton(item, nil, nil, nil, nil, true)
|
||||
item:ClearAllPoints()
|
||||
item:SetPoint("LEFT", 2, 0)
|
||||
end
|
||||
end
|
||||
hooksecurefunc("AuctionFrameBrowse_Update", function()
|
||||
for i = 1, NUM_BROWSE_TO_DISPLAY do
|
||||
|
||||
Reference in New Issue
Block a user