Two new lines: DPS and Skada DPS. Note that DPS requires you to call StartDPS() or just use the mouse gestures that are provided.
Scott Sibley [11-17-10 - 23:52]
Two new lines: DPS and Skada DPS. Note that DPS requires you to call StartDPS() or just use the mouse gestures that are provided.
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index eabf86e..ef0418c 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -486,6 +486,29 @@ local name = UnitName(unit)
return mod.db.realm[name]
]],
enabled = true
+ },
+ [27] = {
+ name = "DPS",
+ left = [[
+return "DPS:"
+]],
+ right = [[
+return UnitDPS(unit)
+]],
+ enabled = true
+ },
+ [28] = {
+ name = "Skada DPS",
+ left = [[
+return "Skada DPS:"
+]],
+ right = [[
+local dps = SkadaUnitDPS(unit)
+if dps then
+ return format("%d", dps)
+end
+]],
+ enabled = true
}
}
@@ -493,6 +516,7 @@ local options = {}
function mod:ReInit()
self:ClearLines()
+ self.db.profile.lines = {}
for k, v in ipairs(defaultLines) do
for j, vv in ipairs(self.db.profile.lines) do
vv.colorLeft = nil