diff --git a/NugEnergy.lua b/NugEnergy.lua index 9e1b79b..4de660d 100644 --- a/NugEnergy.lua +++ b/NugEnergy.lua @@ -120,6 +120,7 @@ local defaults = { height = 30, normalColor = { 0.9, 0.1, 0.1 }, --1 altColor = { 0.9, 0.168, 0.43 }, -- for dispatch and meta 2 + useMaxColor = true, maxColor = { 131/255, 0.2, 0.2 }, --max color 3 lowColor = { 141/255, 31/255, 62/255 }, --low color 4 enableColorByPowerType = false, @@ -986,6 +987,9 @@ function NugEnergy:SetNormalColor() lowColor = NugEnergy.db.profile.lowColor maxColor = NugEnergy.db.profile.maxColor end + if not NugEnergy.db.profile.useMaxColor then + maxColor = normalColor + end end function NugEnergy:Resize() @@ -1875,6 +1879,7 @@ function NugEnergy:CreateGUI() ColorByPowerType = { name = L"Color by Power Type", type = "toggle", + width = "full", order = 1.1, get = function(info) return NugEnergy.db.profile.enableColorByPowerType end, set = function(info, v) @@ -1882,6 +1887,17 @@ function NugEnergy:CreateGUI() NugEnergy:SetNormalColor() end }, + useMaxColor = { + name = L"Recolor when Capped", + type = "toggle", + width = "full", + order = 1.11, + get = function(info) return NugEnergy.db.profile.useMaxColor end, + set = function(info, v) + NugEnergy.db.profile.useMaxColor = not NugEnergy.db.profile.useMaxColor + NugEnergy:SetNormalColor() + end + }, customColorGroup = { type = "group", name = "Custom Power Colors", @@ -2270,7 +2286,7 @@ function NugEnergy:CreateGUI() specsTable["conf"..specIndex] = { name = "", -- width = 1.5, - width = 3.0, + width = 3.2, type = "select", values = NugEnergy:GetAvailableConfigsForSpec(specIndex), get = function(info) return NugEnergy.db.global.classConfig[class][specIndex] end,