mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
api: move height into skin function
This commit is contained in:
+4
-1
@@ -500,13 +500,16 @@ function pfUI.api.SkinDropDown(frame, offsetX, offsetY)
|
||||
end
|
||||
|
||||
function pfUI.api.SkinTab(frame, fixed)
|
||||
frame:SetHeight(20)
|
||||
StripTextures(frame)
|
||||
CreateBackdrop(frame)
|
||||
|
||||
if not fixed then
|
||||
frame:SetScript("OnShow", function()
|
||||
this:SetWidth(this:GetTextWidth() + 20)
|
||||
_G[this:GetName().."Text"]:SetPoint("CENTER", 0, 0)
|
||||
if this.GetFontString and this:GetFontString() then
|
||||
this:GetFontString():SetPoint("CENTER", 0, 0)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -370,7 +370,6 @@ pfUI:RegisterSkin("Character", function ()
|
||||
local tab = _G["CharacterFrameTab"..i]
|
||||
SkinTab(tab)
|
||||
tab.backdrop:SetFrameLevel(1)
|
||||
tab:SetHeight(18)
|
||||
|
||||
if i ~= 1 then
|
||||
local lastTab = _G["CharacterFrameTab"..(i-1)]
|
||||
|
||||
Reference in New Issue
Block a user