Show AFK and DND durations for units.
Scott Sibley [11-19-10 - 05:21]
Show AFK and DND durations for units.
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 58bbd54..766fda9 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -78,7 +78,17 @@ if UnitIsPlayer(unit) then
else
r, g, b = UnitSelectionColor(unit)
end
-return Colorize(Name(unit), r, g, b)
+local afk = AFK(unit)
+if afk then
+ afk = " " .. Angle(afk)
+else
+ afk = ""
+end
+local dnd = DND(unit)
+if dnd then
+ afk = " " .. Angle(dnd)
+end
+return Colorize(Name(unit) .. afk , r, g, b)
]],
right = nil,
bold = true,