From 33f1ccd75ae1a2f134579c126671faef3e3a7769 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Sun, 24 Jul 2011 18:44:41 -0500 Subject: [PATCH] Modify power colors' saturation some so the Mana color isn't so dark. --- Modules/UnitTooltip/UnitTooltip.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua index 51dc61a..aa946a2 100644 --- a/Modules/UnitTooltip/UnitTooltip.lua +++ b/Modules/UnitTooltip/UnitTooltip.lua @@ -274,8 +274,11 @@ if not UnitExists(unit) then self:Stop(); return self.lastMana end local mana = Power(unit) local maxMana = MaxPower(unit) local r, g, b = PowerColor(nil, unit) +local h, s, v = RGB2HSV(r, g, b) +s = .5 +r, g, b = HSV2RGB(h, s, v) local value = L["Unknown"] -if maxMana == 100 then +if maxMana == 100 or maxMana == 120 then value = Colorize(tostring(mana), r, g, b) elseif maxMana ~= 0 then value = Colorize(format("%s/%s (%d%%)", Short(mana, true), Short(maxMana, true), mana/maxMana*100), r, g, b) -- 1.7.9.5