By popular request, there's now a Location line.
Scott Sibley [10-19-10 - 03:40]
By popular request, there's now a Location line.
diff --git a/Modules/Debug/Debug.lua b/Modules/Debug/Debug.lua
index e447418..21b7f94 100644
--- a/Modules/Debug/Debug.lua
+++ b/Modules/Debug/Debug.lua
@@ -79,7 +79,6 @@ function mod:OnDisable()
end
function mod:SetUnit()
- local name, guild, location = PluginUnitTooltipStats.GetUnitTooltipStats(StarTip.unit)
end
function mod:OnHide()
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index e9042ed..76de19d 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -388,6 +388,16 @@ return select(2, GetRole(unit))
update = 1000
},
[22] = {
+ name = "Location",
+ left = [[
+return "Location:"
+]],
+ right = [[
+return select(3, GetUnitTooltipStats(unit))
+]],
+ enabled = true
+ },
+ [23] = {
name = "Range",
left = [[
local min, max = RangeCheck:GetRange(unit)
diff --git a/modules.xml b/modules.xml
index ec719ed..2d1c71c 100644
--- a/modules.xml
+++ b/modules.xml
@@ -17,8 +17,8 @@
<Script file = "Modules\Icons\Icons.lua"/>
<Script file = "Modules\Gestures\Gestures.lua"/>
<Script file = "Modules\Nameplates\Nameplates.lua"/>
-<!--<Script file = "Modules\Debug\Debug.lua"/>
--->
+<Script file = "Modules\Debug\Debug.lua"/>
+
<!--@end-debug@-->
</Ui>