skin: always open setting frames centered

This commit is contained in:
shagu
2019-03-31 14:59:21 +02:00
parent 5408ad4ddf
commit 8ea85c4d10
3 changed files with 15 additions and 2 deletions
+5
View File
@@ -5,6 +5,11 @@ pfUI:RegisterSkin("Options-Video", function ()
CreateBackdrop(OptionsFrame, nil, nil, .75)
EnableMovable(OptionsFrame)
HookScript(OptionsFrame, "OnShow", function()
this:ClearAllPoints()
this:SetPoint("CENTER", 0, 0)
end)
OptionsFrameHeader:SetTexture("")
local OptionsFrameHeaderText = GetNoNameObject(OptionsFrame, "FontString", "ARTWORK", VIDEOOPTIONS_MENU)
OptionsFrameHeaderText:ClearAllPoints()