(fix/WeakAuras): Resolve long-standing frame level overflow

Switches frame level assignment to depth-based ordering to avoid overflow
and ensure deterministic ordering. WeakAurasFrame now correctly lives on
FrameStrata MEDIUM without interfering with Blizzard UI elements.

(cherry picked from commit e92edf5700ad70587a71c3a403e5cc672dbc9e8e)
This commit is contained in:
NoM0Re
2025-12-24 23:34:24 -07:00
committed by andrew6180
parent aca47d69fd
commit 1836ba84d8
6 changed files with 38 additions and 48 deletions
@@ -561,12 +561,11 @@ local function createOptions(id, data)
name = L["Flat Framelevels"],
desc = L["The group and all direct children will share the same base frame level."],
order = 30,
set = function(info, v)
data.sharedFrameLevel = v
WeakAuras.Add(data)
for parent in OptionsPrivate.Private.TraverseParents(data) do
WeakAuras.Add(parent)
end
get = function()
return true
end,
set = function()
-- Frame levels are flattened by default and cannot be changed on this version
end
},
endHeader = {
+5 -6
View File
@@ -603,12 +603,11 @@ local function createOptions(id, data)
name = L["Flat Framelevels"],
desc = L["The group and all direct children will share the same base frame level."],
order = 47,
set = function(info, v)
data.sharedFrameLevel = v
WeakAuras.Add(data)
for parent in OptionsPrivate.Private.TraverseParents(data) do
WeakAuras.Add(parent)
end
get = function()
return true
end,
set = function()
-- Frame levels are flattened by default and cannot be changed on this version
end
},
endHeader = {