(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:
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user