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
@@ -6,6 +6,11 @@ pfUI:RegisterSkin("Options-Sound", function ()
CreateBackdrop(SoundOptionsFrame, nil, true, .75)
EnableMovable(SoundOptionsFrame)
HookScript(SoundOptionsFrame, "OnShow", function()
this:ClearAllPoints()
this:SetPoint("CENTER", 0, 0)
end)
local SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "ARTWORK", SOUNDOPTIONS_MENU)
SoundOptionsFrameHeaderText:ClearAllPoints()
SoundOptionsFrameHeaderText:SetPoint("TOP", 0, -10)