From 015891449e8db4eed619c973b11f5a522807346a Mon Sep 17 00:00:00 2001 From: Narcasung Date: Sun, 19 Jul 2026 01:41:04 +0200 Subject: [PATCH] Group CoA anchors under a dedicated CoA category in Toggle Anchors Registers a COA entry into ElvUI's config-mode dropdown (General/ActionBars/etc.) and tags the Class Resources, Extra Action Bar, and Instance Swap movers with it, so they no longer surface mixed into ElvUI's General/ActionBars anchor filters. --- Modules/ClassResources.lua | 2 +- Modules/ExtraActionBar.lua | 2 +- Modules/LayerPicker.lua | 2 +- core.lua | 11 +++++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Modules/ClassResources.lua b/Modules/ClassResources.lua index 2bb1539..942f382 100644 --- a/Modules/ClassResources.lua +++ b/Modules/ClassResources.lua @@ -194,7 +194,7 @@ local function SetupMover(frame, name, moverText) holder:Size(width, height) holder:Point("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", left, bottom) - E:CreateMover(holder, "CoA_"..name.."Mover", moverText, nil, nil, nil, nil, nil, "CoA,skin,classResources") + E:CreateMover(holder, "CoA_"..name.."Mover", moverText, nil, nil, nil, "ALL,COA", nil, "CoA,skin,classResources") holder:SetAllPoints(_G["CoA_"..name.."Mover"]) QueueAnchor(function() diff --git a/Modules/ExtraActionBar.lua b/Modules/ExtraActionBar.lua index a16174c..c4609a1 100644 --- a/Modules/ExtraActionBar.lua +++ b/Modules/ExtraActionBar.lua @@ -175,7 +175,7 @@ local function SetupMover(container, button) holder:Size(width, height) holder:Point("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", left, bottom) - E:CreateMover(holder, "CoA_ExtraActionBarMover", "Extra Action Bar", nil, nil, nil, "ALL,ACTIONBARS", nil, "CoA,skin,extraActionBar") + E:CreateMover(holder, "CoA_ExtraActionBarMover", "Extra Action Bar", nil, nil, nil, "ALL,COA", nil, "CoA,skin,extraActionBar") holder:SetAllPoints(_G["CoA_ExtraActionBarMover"]) local function Anchor() diff --git a/Modules/LayerPicker.lua b/Modules/LayerPicker.lua index e6b2bf3..67fcfdb 100644 --- a/Modules/LayerPicker.lua +++ b/Modules/LayerPicker.lua @@ -79,7 +79,7 @@ local function SetupMover(button) holder:Size(width, height) holder:Point("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", left, bottom) - E:CreateMover(holder, "CoA_LayerPickerMover", "Instance", nil, nil, nil, nil, nil, "CoA,skin,instance") + E:CreateMover(holder, "CoA_LayerPickerMover", "Instance", nil, nil, nil, "ALL,COA", nil, "CoA,skin,instance") holder:SetAllPoints(_G["CoA_LayerPickerMover"]) _G["CoA_LayerPickerMover"]:SetFrameStrata("FULLSCREEN") diff --git a/core.lua b/core.lua index 2b912e7..6bfccec 100644 --- a/core.lua +++ b/core.lua @@ -335,7 +335,18 @@ local function getOptions() E.Options.args.CoA = options end +local function RegisterMoverCategory() + for _, layout in ipairs(E.ConfigModeLayouts) do + if layout == "COA" then return end + end + + tinsert(E.ConfigModeLayouts, "COA") + E.ConfigModeLocalizedStrings.COA = "CoA" +end + function CoA:Initialize() + RegisterMoverCategory() + EP:RegisterPlugin(AddOnName, getOptions) if self.InitializeExtraActionBar then