mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +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
|
for i = 1, NUM_BROWSE_TO_DISPLAY do
|
||||||
local button = _G["BrowseButton"..i]
|
local button = _G["BrowseButton"..i]
|
||||||
StripTextures(button, nil, "BACKGROUND")
|
if button then
|
||||||
CreateBackdrop(button, nil, true)
|
StripTextures(button, nil, "BACKGROUND")
|
||||||
button:GetHighlightTexture():SetHeight(40)
|
CreateBackdrop(button, nil, true)
|
||||||
|
|
||||||
|
local highlight = button:GetHighlightTexture()
|
||||||
|
if highlight then
|
||||||
|
highlight:SetHeight(40)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local item = _G["BrowseButton"..i.."Item"]
|
local item = _G["BrowseButton"..i.."Item"]
|
||||||
StripTextures(item)
|
if item then
|
||||||
SkinButton(item, nil, nil, nil, nil, true)
|
StripTextures(item)
|
||||||
item:ClearAllPoints()
|
SkinButton(item, nil, nil, nil, nil, true)
|
||||||
item:SetPoint("LEFT", 2, 0)
|
item:ClearAllPoints()
|
||||||
|
item:SetPoint("LEFT", 2, 0)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
hooksecurefunc("AuctionFrameBrowse_Update", function()
|
hooksecurefunc("AuctionFrameBrowse_Update", function()
|
||||||
for i = 1, NUM_BROWSE_TO_DISPLAY do
|
for i = 1, NUM_BROWSE_TO_DISPLAY do
|
||||||
|
|||||||
Reference in New Issue
Block a user