Fix energy and rage bars detach options
Detaching energy and rage bars weren't enabling the options to choose width and parent.
This commit is contained in:
parent
f0d6094c10
commit
78afdabcf5
1 changed files with 5 additions and 5 deletions
|
|
@ -1196,7 +1196,7 @@ local function GetOptionsTable_Energy(hasDetatchOption, updateFunc, groupName, n
|
|||
type = "range",
|
||||
order = 12,
|
||||
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
|
||||
}
|
||||
config.args.parent = {
|
||||
|
|
@ -1204,7 +1204,7 @@ local function GetOptionsTable_Energy(hasDetatchOption, updateFunc, groupName, n
|
|||
order = 11,
|
||||
name = L["Parent"],
|
||||
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 = {
|
||||
["FRAME"] = "FRAME",
|
||||
["UIPARENT"] = "UIPARENT"
|
||||
|
|
@ -1404,7 +1404,7 @@ local function GetOptionsTable_Rage(hasDetatchOption, updateFunc, groupName, num
|
|||
type = "range",
|
||||
order = 12,
|
||||
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
|
||||
}
|
||||
config.args.parent = {
|
||||
|
|
@ -1412,7 +1412,7 @@ local function GetOptionsTable_Rage(hasDetatchOption, updateFunc, groupName, num
|
|||
order = 11,
|
||||
name = L["Parent"],
|
||||
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 = {
|
||||
["FRAME"] = "FRAME",
|
||||
["UIPARENT"] = "UIPARENT"
|
||||
|
|
@ -8287,4 +8287,4 @@ function E:RefreshCustomTextsConfigs()
|
|||
end
|
||||
end
|
||||
end
|
||||
E:RefreshCustomTextsConfigs()
|
||||
E:RefreshCustomTextsConfigs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue