mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
skins: check for close button in interface options
This commit is contained in:
@@ -96,7 +96,6 @@ pfUI:RegisterSkin("Options - Interface", "vanilla", function ()
|
||||
UIOptionsFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 50)
|
||||
UIOptionsFrame:SetHitRectInsets(0,0,0,50)
|
||||
|
||||
local close = GetNoNameObject(UIOptionsFrame, "Button", nil, "UI-Panel-MinimizeButton-Up")
|
||||
|
||||
-- increase button layer
|
||||
UIOptionsFrameTab1:SetFrameLevel(8)
|
||||
@@ -104,9 +103,13 @@ pfUI:RegisterSkin("Options - Interface", "vanilla", function ()
|
||||
UIOptionsFrameDefaults:SetFrameLevel(8)
|
||||
UIOptionsFrameCancel:SetFrameLevel(8)
|
||||
UIOptionsFrameOkay:SetFrameLevel(8)
|
||||
close:SetFrameLevel(8)
|
||||
|
||||
SkinCloseButton(close, UIOptionsFrame.backdrop, -6, -6)
|
||||
local close = GetNoNameObject(UIOptionsFrame, "Button", nil, "UI-Panel-MinimizeButton-Up")
|
||||
if close then
|
||||
close:SetFrameLevel(8)
|
||||
SkinCloseButton(close, UIOptionsFrame.backdrop, -6, -6)
|
||||
end
|
||||
|
||||
if UIOptionsFrameTitle then
|
||||
UIOptionsFrameTitle:ClearAllPoints()
|
||||
UIOptionsFrameTitle:SetPoint("TOP", UIOptionsFrame.backdrop, "TOP", 0, -10)
|
||||
|
||||
Reference in New Issue
Block a user