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.
This commit is contained in:
@@ -194,7 +194,7 @@ local function SetupMover(frame, name, moverText)
|
|||||||
holder:Size(width, height)
|
holder:Size(width, height)
|
||||||
holder:Point("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", left, bottom)
|
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"])
|
holder:SetAllPoints(_G["CoA_"..name.."Mover"])
|
||||||
|
|
||||||
QueueAnchor(function()
|
QueueAnchor(function()
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ local function SetupMover(container, button)
|
|||||||
holder:Size(width, height)
|
holder:Size(width, height)
|
||||||
holder:Point("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", left, bottom)
|
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"])
|
holder:SetAllPoints(_G["CoA_ExtraActionBarMover"])
|
||||||
|
|
||||||
local function Anchor()
|
local function Anchor()
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ local function SetupMover(button)
|
|||||||
holder:Size(width, height)
|
holder:Size(width, height)
|
||||||
holder:Point("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", left, bottom)
|
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"])
|
holder:SetAllPoints(_G["CoA_LayerPickerMover"])
|
||||||
_G["CoA_LayerPickerMover"]:SetFrameStrata("FULLSCREEN")
|
_G["CoA_LayerPickerMover"]:SetFrameStrata("FULLSCREEN")
|
||||||
|
|
||||||
|
|||||||
@@ -335,7 +335,18 @@ local function getOptions()
|
|||||||
E.Options.args.CoA = options
|
E.Options.args.CoA = options
|
||||||
end
|
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()
|
function CoA:Initialize()
|
||||||
|
RegisterMoverCategory()
|
||||||
|
|
||||||
EP:RegisterPlugin(AddOnName, getOptions)
|
EP:RegisterPlugin(AddOnName, getOptions)
|
||||||
|
|
||||||
if self.InitializeExtraActionBar then
|
if self.InitializeExtraActionBar then
|
||||||
|
|||||||
Reference in New Issue
Block a user