Make skinning baseline behavior, restructure options into empty tabs

Skinning of both the ExtraActionBar and LayerPickerFrame buttons is no longer opt-in. Replaces the old single Skins tab and its toggles with two empty tabs, Extra Action Button and Instance Swap, for future per-frame settings.
This commit is contained in:
2026-07-13 15:43:18 +02:00
parent 64a310bc80
commit db6c7d79b0
3 changed files with 12 additions and 38 deletions
-3
View File
@@ -129,11 +129,8 @@ local function TryHook()
if container and button then
SetupMover(container, button)
if E.private.CoA.extraActionBar then
SkinButton(button)
end
end
return container ~= nil and button ~= nil
end
-3
View File
@@ -78,11 +78,8 @@ local function TryHook()
if button then
DisableDrag(button)
SetupMover(button)
if E.private.CoA.instance then
SkinButton(button)
end
end
return button ~= nil
end
+8 -28
View File
@@ -6,10 +6,7 @@ local AddOnName = ...
local CoA = E:NewModule("CoA", "AceEvent-3.0", "AceTimer-3.0")
E.CoA = CoA
V.CoA = {
extraActionBar = true,
instance = true,
}
V.CoA = {}
local function getOptions()
local options = {
@@ -18,34 +15,17 @@ local function getOptions()
childGroups = "tab",
name = string.format("|cff1784d1%s|r", "Conquest of Azeroth"),
args = {
skin = {
extraActionButton = {
order = 1,
type = "group",
name = "Skins",
get = function(info) return E.private.CoA[info[#info]] end,
set = function(info, value)
E.private.CoA[info[#info]] = value
E:StaticPopup_Show("PRIVATE_RL")
end,
args = {
header = {
order = 1,
type = "header",
name = "Skins",
name = "Extra Action Button",
args = {},
},
extraActionBar = {
instanceSwap = {
order = 2,
type = "toggle",
name = "Extra Action Bar",
desc = "Skin the ExtraActionBar frame.",
},
instance = {
order = 3,
type = "toggle",
name = "Instance",
desc = "Skin the LayerPickerFrame button.",
},
},
type = "group",
name = "Instance Swap",
args = {},
},
},
}