mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 21:50:00 +00:00
skin: always open setting frames centered
This commit is contained in:
@@ -2,8 +2,6 @@ pfUI:RegisterSkin("Options-Interface", function ()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
local bpad = border > 1 and border - 1 or 1
|
||||
|
||||
UIOptionsFrame:ClearAllPoints()
|
||||
UIOptionsFrame:SetPoint("CENTER", 0, 0)
|
||||
UIOptionsFrame:SetParent(UIParent)
|
||||
UIOptionsFrame:SetWidth(1024)
|
||||
UIOptionsFrame:SetHeight(700)
|
||||
@@ -12,6 +10,11 @@ pfUI:RegisterSkin("Options-Interface", function ()
|
||||
CreateBackdrop(UIOptionsFrame, nil, nil, .75)
|
||||
EnableMovable(UIOptionsFrame)
|
||||
|
||||
HookScript(UIOptionsFrame, "OnShow", function()
|
||||
this:ClearAllPoints()
|
||||
this:SetPoint("CENTER", 0, 0)
|
||||
end)
|
||||
|
||||
UIOptionsFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 50)
|
||||
UIOptionsFrame:SetHitRectInsets(0,0,0,50)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user