Quantcast

Add Gender line as requested

Scott Sibley [10-16-10 - 21:06]
Add Gender line as requested
Filename
Modules/Position/Position.lua
Modules/UnitTooltip/UnitTooltip.lua
modules.xml
diff --git a/Modules/Position/Position.lua b/Modules/Position/Position.lua
index d6d6a3a..a1a90c0 100644
--- a/Modules/Position/Position.lua
+++ b/Modules/Position/Position.lua
@@ -340,7 +340,7 @@ local positionTooltip = function()

 	if x ~= oldX or y ~= oldY then
 		GameTooltip:ClearAllPoints()
-		GameTooltip:SetPoint(currentAnchor, UIParent, "BOTTOMLEFT", (x + xoffset) / effScale, (y + yoffset) / effScale)
+		GameTooltip:SetPoint(currentAnchor, UIParent, "BOTTOMLEFT", (x + xoffset) / effScale, (y + yoffset) / effScale + 5)
 	end
 	oldX, oldY = x, y
 end
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index a39afdd..81ecea7 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -138,7 +138,20 @@ return format("%s%s", Level(unit), Colorize(classification and (' ' .. classific
 ]],
 		enabled = true,
     },
-    [7] = {
+	[7] = {
+		name = "Gender",
+		left = 'return "Gender:"',
+		right = [[
+local sex = UnitSex(unit)
+if sex == 2 then
+    return "Male"
+elseif sex == 3 then
+    return "Female"
+end
+]],
+		enabled = true
+	},
+    [8] = {
         name = "Race",
         left = 'return "Race:"',
         right = [[
@@ -146,7 +159,7 @@ return SmartRace(unit)
 ]],
 		enabled = true,
     },
-    [8] = {
+    [9] = {
         name = "Class",
         left = 'return "Class:"',
         right = [[
@@ -161,7 +174,7 @@ return Colorize(UnitClass(unit), r, g, b)
 ]],
 		enabled = true,
     },
-	[9] = {
+	[10] = {
 	name = "Druid Form",
 	left = 'return "Form:"',
 	right = [[
@@ -169,7 +182,7 @@ return DruidForm(unit)
 ]],
 	enabled = true
 	},
-    [10] = {
+    [11] = {
         name = "Faction",
         left = 'return "Faction:"',
         right = [[
@@ -177,7 +190,7 @@ return Faction(unit)
 ]],
 		enabled = true,
     },
-    [11] = {
+    [12] = {
         name = "Status",
         left = 'return "Status:"',
         right = [[
@@ -200,7 +213,7 @@ return "Alive"
 		update = 1000,
 		rightUpdating = true
     },
-    [12] = {
+    [13] = {
         name = "Health",
         left = 'return "Health:"',
         right = [[
@@ -218,7 +231,7 @@ return value
 		update = 1000,
 		enabled = true
     },
-    [13] = {
+    [14] = {
         name = "Mana",
         left = [[
 return PowerName(unit)
@@ -239,13 +252,7 @@ return value
 		enabled = true,
 		update = 1000
     },
-    [14] = {
-        name = "Location",
-        left = 'return "Location:"',
-        right = "return nil",
-		enabled = true
-    },
-	[15] = {
+	[16] = {
 		name = "Marquee",
 		left = 'return "StarTip " .. _G.StarTip.version',
 		leftUpdating = true,
@@ -259,7 +266,7 @@ return value
 		direction = WidgetText.SCROLL_LEFT,
 		dontRtrim = true
 	},
-	[16] = {
+	[17] = {
 		name = "Memory Usage",
 		left = "return 'Memory Usage:'",
 		right = [[
@@ -275,7 +282,7 @@ end
 		rightUpdating = true,
 		update = 1000
 	},
-	[17] = {
+	[18] = {
 		name = "CPU Usage",
 		desc = "Note that you must turn on CPU profiling",
 		left = 'return "CPU Usage:"',
@@ -292,7 +299,7 @@ end
 		rightUpdating = true,
 		update = 1000
 	},
-	[18] = {
+	[19] = {
 		name = "Talents",
 		left = "return 'Talents:'",
 		right = [[
@@ -302,7 +309,7 @@ return SpecText(unit)
 		enabled = true,
 		update = 1000
 	},
-	[19] = {
+	[20] = {
 		name = "Current Role",
 		left = [[
 return "Current Role:"
@@ -314,7 +321,7 @@ return GetRole(unit)
 		enabled = true,
 		update = 1000
 	},
-	[20] = {
+	[21] = {
 		name = "Old Role",
 		left = [[
 return "Old Role:"
@@ -326,7 +333,7 @@ return select(2, GetRole(unit))
 		enabled = true,
 		update = 1000
 	},
-	[21] = {
+	[22] = {
 		name = "Range",
 		left = [[
 local min, max = RangeCheck:GetRange(unit)
diff --git a/modules.xml b/modules.xml
index 66ff3b0..ec719ed 100644
--- a/modules.xml
+++ b/modules.xml
@@ -2,8 +2,8 @@
 ..\FrameXML\UI.xsd">

 <!--@debug@-->
-<Script file = "Modules\Fade\Fade.lua"/>
 <Script file = "Modules\Appearance\Appearance.lua"/>
+<Script file = "Modules\Fade\Fade.lua"/>
 <Script file = "Modules\Position\Position.lua"/>
 <Script file = "Modules\PvP\PvP.lua"/>
 <Script file = "Modules\RaidIcon\RaidIcon.lua"/>
@@ -11,12 +11,14 @@
 <Script file = "Modules\Texts\Texts.lua"/>
 <Script file = "Modules\Bars\Bars.lua"/>
 <Script file = "Modules\Histograms\Histograms.lua"/>
+
 <Script file = "Modules\UnitTooltip\UnitTooltip.lua"/>
 <Script file = "Modules\Portrait\Portrait.lua"/>
 <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>