mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 13:30:50 +00:00
performance update
performance update
This commit is contained in:
@@ -1,21 +1,9 @@
|
||||
pfUI:RegisterSkin("Merchant", "vanilla:tbc", function ()
|
||||
pfUI:RegisterSkin("Merchant", "vanilla", function ()
|
||||
local rawborder, border = GetBorderSize()
|
||||
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
|
||||
|
||||
-- Compatibility
|
||||
if MerchantGuildBankRepairButton then -- tbc
|
||||
SkinButton(MerchantGuildBankRepairButton, nil, nil, nil, MerchantGuildBankRepairButtonIcon)
|
||||
MerchantGuildBankRepairButtonIcon:SetTexCoord(.59, .82, .06, .54)
|
||||
hooksecurefunc("MerchantFrame_UpdateRepairButtons", function()
|
||||
MerchantGuildBankRepairButton:ClearAllPoints()
|
||||
MerchantGuildBankRepairButton:SetPoint("RIGHT", MerchantBuyBackItemItemButton, "LEFT", -14, 0)
|
||||
MerchantRepairAllButton:ClearAllPoints()
|
||||
MerchantRepairAllButton:SetPoint("RIGHT", MerchantGuildBankRepairButton, "LEFT", -6, 0)
|
||||
end)
|
||||
else -- vanilla
|
||||
MerchantRepairAllButton:ClearAllPoints()
|
||||
MerchantRepairAllButton:SetPoint("RIGHT", MerchantBuyBackItemItemButton, "LEFT", -6, 0)
|
||||
end
|
||||
MerchantRepairAllButton:ClearAllPoints()
|
||||
MerchantRepairAllButton:SetPoint("RIGHT", MerchantBuyBackItemItemButton, "LEFT", -6, 0)
|
||||
|
||||
StripTextures(MerchantFrame)
|
||||
CreateBackdrop(MerchantFrame, nil, nil, .75)
|
||||
|
||||
Reference in New Issue
Block a user