Add Recount line. Note that this shows your Recount's current window's information about the said unit.
Scott Sibley [11-21-10 - 13:43]
Add Recount line. Note that this shows your Recount's current window's information about the said unit.
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 4091eaa..4a2ce85 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -498,6 +498,24 @@ return mod.db.realm[name]
enabled = true
},
[27] = {
+ name = "Recount",
+ left = [[
+return "Recount:"
+]],
+right = [[
+local val, perc, persec, maxvalue = RecountUnitData(unit)
+if val then
+ local r, g, b = Gradient(perc / 100)
+ local prefix=""
+ if persec then
+ prefix = persec .. ", "
+ end
+ return Colorize(string.format("%d (%s%d%%)", val, prefix, perc), r, g, b)
+end
+]],
+ enabled = true
+ },
+ [28] = {
name = "DPS",
left = [[
return "DPS:"