Always skin the options the CoA client adds
That pass only fills the gaps ElvUI's own Blizzard options skin leaves, so a switch of its own was never a meaningful choice: it follows E.private.skins.blizzard.enable, the same gate ElvUI checks.
This commit is contained in:
@@ -31,7 +31,6 @@ local defaults = {
|
|||||||
-- row, and this one is a separate window on UIParent with a tab row
|
-- row, and this one is a separate window on UIParent with a tab row
|
||||||
-- of its own.
|
-- of its own.
|
||||||
challenges = true,
|
challenges = true,
|
||||||
interfaceOptions = true,
|
|
||||||
},
|
},
|
||||||
extraActionButtonSize = 52,
|
extraActionButtonSize = 52,
|
||||||
instanceButtonFont = "PT Sans Narrow",
|
instanceButtonFont = "PT Sans Narrow",
|
||||||
@@ -303,29 +302,6 @@ local function getOptions()
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
interfaceOptions = {
|
|
||||||
order = 5,
|
|
||||||
type = "group",
|
|
||||||
name = "Interface Options",
|
|
||||||
args = {
|
|
||||||
header = {
|
|
||||||
order = 1,
|
|
||||||
type = "header",
|
|
||||||
name = "Interface Options",
|
|
||||||
},
|
|
||||||
enable = {
|
|
||||||
order = 2,
|
|
||||||
type = "toggle",
|
|
||||||
name = "Enable",
|
|
||||||
desc = "Skin the options the CoA client adds to the stock Interface, Video and Audio windows, which ElvUI's own pass doesn't cover. Requires a UI reload.",
|
|
||||||
get = function() return CoA.db.profile.skins.interfaceOptions end,
|
|
||||||
set = function(_, value)
|
|
||||||
CoA.db.profile.skins.interfaceOptions = value
|
|
||||||
E:StaticPopup_Show("CONFIG_RL")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
classResources = {
|
classResources = {
|
||||||
@@ -536,7 +512,10 @@ function CoA:Initialize()
|
|||||||
self:InitializeChallengesFrame()
|
self:InitializeChallengesFrame()
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.InitializeInterfaceOptions and skins.interfaceOptions then
|
-- No switch of its own: this one only fills the gaps ElvUI's own Blizzard
|
||||||
|
-- options pass leaves, so it's on wherever that pass is, and its own gate on
|
||||||
|
-- E.private.skins.blizzard.enable is the same one ElvUI checks.
|
||||||
|
if self.InitializeInterfaceOptions then
|
||||||
self:InitializeInterfaceOptions()
|
self:InitializeInterfaceOptions()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user