health bar options update

This commit is contained in:
Sumsebrum 2022-03-27 20:57:53 +02:00
parent c576adec2f
commit c408448aad

View File

@ -464,13 +464,6 @@ function Healthbar:GetOptions()
dialogControl = "LSM30_Statusbar", dialogControl = "LSM30_Statusbar",
values = AceGUIWidgetLSMlists.statusbar, values = AceGUIWidgetLSMlists.statusbar,
}), }),
healthBarBgColor = Gladdy:colorOption({
type = "color",
name = L["Background color"],
desc = L["Color of the status bar background"],
order = 5,
hasAlpha = true,
}),
}, },
}, },
barColor = { barColor = {
@ -485,7 +478,7 @@ function Healthbar:GetOptions()
}, },
healthBarClassColored = Gladdy:option({ healthBarClassColored = Gladdy:option({
type = "toggle", type = "toggle",
name = L["Class colored health bar"], name = L["Class colored"] .. " " .. L["Health Bar"],
order = 2, order = 2,
width = "full", width = "full",
}), }),
@ -495,31 +488,43 @@ function Healthbar:GetOptions()
order = 3, order = 3,
hasAlpha = true, hasAlpha = true,
}), }),
healthBarBgColor = Gladdy:colorOption({
type = "color",
name = L["Background color"],
desc = L["Color of the status bar background"],
order = 4,
hasAlpha = true,
}),
headerAuras = {
type = "header",
name = L["Custom Colors"],
order = 10,
},
healthBarColoredByCurrentHp = Gladdy:option({ healthBarColoredByCurrentHp = Gladdy:option({
type = "toggle", type = "toggle",
name = L["healthBarColoredByCurrentHp"], name = L["Enable Custom Colors"],
order = 4, order = 11,
width = "full", width = "full",
disabled = function() return Gladdy.db.healthBarClassColored end, disabled = function() return Gladdy.db.healthBarClassColored end,
}), }),
healthBarStatusBarColorMax = Gladdy:colorOption({ healthBarStatusBarColorMax = Gladdy:colorOption({
type = "color", type = "color",
name = L["100%"], name = L["100%"],
order = 5, order = 12,
hasAlpha = false, hasAlpha = false,
disabled = function() return Gladdy.db.healthBarClassColored end, disabled = function() return Gladdy.db.healthBarClassColored end,
}), }),
healthBarStatusBarColorMid = Gladdy:colorOption({ healthBarStatusBarColorMid = Gladdy:colorOption({
type = "color", type = "color",
name = L["50%"], name = L["50%"],
order = 6, order = 13,
hasAlpha = false, hasAlpha = false,
disabled = function() return Gladdy.db.healthBarClassColored end, disabled = function() return Gladdy.db.healthBarClassColored end,
}), }),
healthBarStatusBarColorMin = Gladdy:colorOption({ healthBarStatusBarColorMin = Gladdy:colorOption({
type = "color", type = "color",
name = L["0%"], name = L["0%"],
order = 7, order = 14,
hasAlpha = false, hasAlpha = false,
disabled = function() return Gladdy.db.healthBarClassColored end, disabled = function() return Gladdy.db.healthBarClassColored end,
}), }),