Add Current Role and Last Role lines
Scott Sibley [10-05-10 - 00:55]
Add Current Role and Last Role lines
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 08a5d87..7dd66ac 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -303,6 +303,30 @@ return SpecText(unit)
update = 1000
},
[19] = {
+ name = "Current Role",
+ left = [[
+return "Current Role:"
+]],
+ right = [[
+return GetRole(unit)
+]],
+ rightUpdating = true,
+ enabled = true,
+ update = 1000
+ },
+ [20] = {
+ name = "Old Role",
+ left = [[
+return "Old Role:"
+]],
+ right = [[
+return select(2, GetRole(unit))
+]],
+ rightUpdating = true,
+ enabled = true,
+ update = 1000
+ },
+ [21] = {
name = "Range",
left = [[
local min, max = RangeCheck:GetRange(unit)