Merge pull request #67 from vcleal/main

Fix energy and rage bars detach options
This commit is contained in:
Andrew
2025-08-27 12:59:35 -07:00
committed by GitHub
+5 -5
View File
@@ -1196,7 +1196,7 @@ local function GetOptionsTable_Energy(hasDetatchOption, updateFunc, groupName, n
type = "range", type = "range",
order = 12, order = 12,
name = L["Detached Width"], name = L["Detached Width"],
disabled = function() return not E.db.unitframe.units[groupName].power.detachFromFrame end, disabled = function() return not E.db.unitframe.units[groupName].energy.detachFromFrame end,
min = 15, max = 1000, step = 1 min = 15, max = 1000, step = 1
} }
config.args.parent = { config.args.parent = {
@@ -1204,7 +1204,7 @@ local function GetOptionsTable_Energy(hasDetatchOption, updateFunc, groupName, n
order = 11, order = 11,
name = L["Parent"], name = L["Parent"],
desc = L["Choose UIPARENT to prevent it from hiding with the unitframe."], desc = L["Choose UIPARENT to prevent it from hiding with the unitframe."],
disabled = function() return not E.db.unitframe.units[groupName].power.detachFromFrame end, disabled = function() return not E.db.unitframe.units[groupName].energy.detachFromFrame end,
values = { values = {
["FRAME"] = "FRAME", ["FRAME"] = "FRAME",
["UIPARENT"] = "UIPARENT" ["UIPARENT"] = "UIPARENT"
@@ -1404,7 +1404,7 @@ local function GetOptionsTable_Rage(hasDetatchOption, updateFunc, groupName, num
type = "range", type = "range",
order = 12, order = 12,
name = L["Detached Width"], name = L["Detached Width"],
disabled = function() return not E.db.unitframe.units[groupName].power.detachFromFrame end, disabled = function() return not E.db.unitframe.units[groupName].rage.detachFromFrame end,
min = 15, max = 1000, step = 1 min = 15, max = 1000, step = 1
} }
config.args.parent = { config.args.parent = {
@@ -1412,7 +1412,7 @@ local function GetOptionsTable_Rage(hasDetatchOption, updateFunc, groupName, num
order = 11, order = 11,
name = L["Parent"], name = L["Parent"],
desc = L["Choose UIPARENT to prevent it from hiding with the unitframe."], desc = L["Choose UIPARENT to prevent it from hiding with the unitframe."],
disabled = function() return not E.db.unitframe.units[groupName].power.detachFromFrame end, disabled = function() return not E.db.unitframe.units[groupName].rage.detachFromFrame end,
values = { values = {
["FRAME"] = "FRAME", ["FRAME"] = "FRAME",
["UIPARENT"] = "UIPARENT" ["UIPARENT"] = "UIPARENT"
@@ -8287,4 +8287,4 @@ function E:RefreshCustomTextsConfigs()
end end
end end
end end
E:RefreshCustomTextsConfigs() E:RefreshCustomTextsConfigs()