Quantcast

Add color to threat line. Got ahead of myself.

Scott Sibley [03-14-11 - 09:51]
Add color to threat line. Got ahead of myself.
Filename
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 11bf746..a14083a 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -665,7 +665,9 @@ local isTanking, status, threatpct, rawthreatpct, threatvalue = UnitDetailedThre

 if not threatpct then return "" end

-return format("Threat: %d%% (%.2f%%)", threatpct, rawthreatpct)
+isTanking = isTanking and 0 or 1
+
+return Colorize(format("Threat: %d%% (%.2f%%)", threatpct, rawthreatpct), 1, isTanking, isTanking)
 ]],
 		enabled = true,
 		update = 300,