mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update Interface Options misc skin
This commit is contained in:
@@ -198,7 +198,6 @@ local function LoadSkin()
|
|||||||
-- hide header textures and move text/buttons.
|
-- hide header textures and move text/buttons.
|
||||||
local BlizzardHeader = {
|
local BlizzardHeader = {
|
||||||
"GameMenuFrame",
|
"GameMenuFrame",
|
||||||
"UIOptionsFrame",
|
|
||||||
"SoundOptionsFrame",
|
"SoundOptionsFrame",
|
||||||
"OptionsFrame",
|
"OptionsFrame",
|
||||||
}
|
}
|
||||||
@@ -300,15 +299,12 @@ local function LoadSkin()
|
|||||||
S:HandleSliderFrame(OpacityFrameSlider)
|
S:HandleSliderFrame(OpacityFrameSlider)
|
||||||
|
|
||||||
-- Interface Options
|
-- Interface Options
|
||||||
UIOptionsFrame:SetScript("OnShow", function()
|
UIOptionsFrame:SetParent(E.UIParent)
|
||||||
UIOptionsFrame_Load()
|
UIOptionsFrame:SetScale(E.UIParent:GetScale())
|
||||||
|
UIOptionsFrame:EnableMouse(0)
|
||||||
E:Kill(UIOptionsBlackground)
|
|
||||||
|
|
||||||
|
hooksecurefunc("UIOptionsFrame_Load", function()
|
||||||
E:StripTextures(UIOptionsFrame, true)
|
E:StripTextures(UIOptionsFrame, true)
|
||||||
|
|
||||||
UIOptionsFrame:EnableMouse(0)
|
|
||||||
UIOptionsFrame:SetScale(UIParent:GetScale())
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local UIOptions = {
|
local UIOptions = {
|
||||||
@@ -331,18 +327,26 @@ local function LoadSkin()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local interfacetab = {
|
for i = 1, 2 do
|
||||||
"UIOptionsFrameTab1",
|
local tab = _G["UIOptionsFrameTab"..i]
|
||||||
"UIOptionsFrameTab2",
|
E:StripTextures(tab, true)
|
||||||
}
|
E:CreateBackdrop(tab, "Transparent")
|
||||||
for i = 1, getn(interfacetab) do
|
|
||||||
local itab = _G[interfacetab[i]]
|
tab:SetFrameLevel(tab:GetParent():GetFrameLevel() + 1)
|
||||||
if itab then
|
tab.backdrop:SetFrameLevel(tab:GetParent():GetFrameLevel() + 1)
|
||||||
E:StripTextures(itab)
|
|
||||||
S:HandleTab(itab)
|
tab.backdrop:SetPoint("TOPLEFT", 10, E.PixelMode and -4 or -6)
|
||||||
E:SetTemplate(itab.backdrop, "Transparent")
|
tab.backdrop:SetPoint("BOTTOMRIGHT", -10, E.PixelMode and -4 or -6)
|
||||||
itab.backdrop:SetPoint("TOPLEFT", 10, E.PixelMode and -4 or -6)
|
|
||||||
itab.backdrop:SetPoint("BOTTOMRIGHT", -10, E.PixelMode and -4 or -6)
|
tab:SetScript("OnEnter", function() S:SetModifiedBackdrop(this) end)
|
||||||
|
tab:SetScript("OnLeave", function() S:SetOriginalBackdrop(this) end)
|
||||||
|
end
|
||||||
|
|
||||||
|
for i = 1, UIOptionsFrame:GetNumChildren() do
|
||||||
|
local child = select(i, UIOptionsFrame:GetChildren())
|
||||||
|
if child.GetPushedTexture and child:GetPushedTexture() and not child:GetName() then
|
||||||
|
child:SetFrameLevel(child:GetParent():GetFrameLevel() + 2)
|
||||||
|
S:HandleCloseButton(child, UIOptionsFrame.backdrop)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user