Attempt to recover old module's data.
Scott Sibley [09-13-10 - 01:34]
Attempt to recover old module's data.
diff --git a/Modules/UnitTooltip.lua b/Modules/UnitTooltip.lua
index b219448..589fefc 100644
--- a/Modules/UnitTooltip.lua
+++ b/Modules/UnitTooltip.lua
@@ -371,6 +371,15 @@ function mod:OnInitialize()
end
end
+ local text = StarTip:GetModule("Text")
+ if text.db.profile.lines then
+ local lines = copy(text.db.profile.lines)
+ for k, line in pairs(lines) do
+ self.db.profile.lines[k] = line
+ end
+ text.db.profile.lines = nil
+ end
+
self.leftLines = StarTip.leftLines
self.rightLines = StarTip.rightLines
self:RegisterEvent("UPDATE_FACTION")
diff --git a/StarTip.lua b/StarTip.lua
index 5f8849a..d59eeef 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -522,8 +522,12 @@ function StarTip.OnTooltipSetUnit()
StarTip.unit = "raid" .. i
end
end
- --elseif UnitInParty("player") then
-
+ elseif UnitInParty("player") then
+ for i=1, GetNumPartyMembers() do
+ if GameTooltip:GetUnit() == UnitName("party" .. i) then
+ StarTip.unit = "party" .. i
+ end
+ end
end
if not StarTip.justSetUnit then
diff --git a/modules.xml b/modules.xml
index 1738194..f7ab2d8 100644
--- a/modules.xml
+++ b/modules.xml
@@ -11,6 +11,7 @@
<Script file = "Modules\Text.lua"/>
<Script file = "Modules\Bars.lua"/>
<Script file = "Modules\Histograms.lua"/>
+<Script file = "Modules\UnitTooltip.lua"/>
<Script file = "Modules\Talents.lua"/>
<!--<Script file = "Modules\LCDDisplay.lua"/>-->