Quantcast

Update with pluginunitstats rename

Scott Sibley [09-16-10 - 06:09]
Update with pluginunitstats rename
Filename
Modules/UnitTooltip.lua
StarTip.lua
diff --git a/Modules/UnitTooltip.lua b/Modules/UnitTooltip.lua
index 3f0b7e1..f2df40f 100644
--- a/Modules/UnitTooltip.lua
+++ b/Modules/UnitTooltip.lua
@@ -14,8 +14,8 @@ local LibTimer = LibStub("StarLibTimer-1.0", true)
 assert(LibTimer, mod.name .. " requires StarLibTimer-1.0")
 local LibEvaluator = LibStub("StarLibEvaluator-1.0", true)
 assert(LibEvaluator, mod.name .. " requires StarLibEvaluator-1.0")
-local UnitStats = LibStub("StarLibPluginUnitStats-1.0", true)
-assert(UnitStats, mod.name .. " requires StarLibPluginUnitStats-1.0")
+local UnitTooltipStats = LibStub("StarLibPluginUnitTooltipStats-1.0", true)
+assert(UnitTooltipStats, mod.name .. " requires StarLibPluginUnitTooltipStats-1.0")

 local _G = _G
 local GameTooltip = _G.GameTooltip
@@ -1022,7 +1022,7 @@ local ff = CreateFrame("Frame")
 function mod:SetUnit()
     if ff:GetScript("OnUpdate") then ff:SetScript("OnUpdate", nil) end

-	environment.unitName, environment.unitGuild, environment.unitLocation = UnitStats.GetUnitStats("mouseover")
+	environment.unitName, environment.unitGuild, environment.unitLocation = UnitTooltipStats.GetUnitTooltipStats("mouseover")

     -- Taken from CowTip
     local lastLine = 2
diff --git a/StarTip.lua b/StarTip.lua
index a3a68ee..c2d0c9d 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -55,8 +55,8 @@ local PluginCharacterStats = LibStub("StarLibPluginCharacterStats-1.0", true)
 assert(PluginCharacterStats, MAJOR .. " requires StarLibPluginCharacterStats-1.0")
 local PluginLocation = LibStub("StarLibPluginLocation-1.0", true)
 assert(PluginLocation, MAJOR .. " requires StarLibPluginLocation-1.0")
-local PluginUnitStats = LibStub("StarLibPluginUnitStats-1.0", true)
-assert(PluginUnitStats, MAJOR .. " requires StarLibPluginUnitStats-1.0")
+local PluginUnitTooltipStats = LibStub("StarLibPluginUnitTooltipStats-1.0", true)
+assert(PluginUnitTooltipStats, MAJOR .. " requires StarLibPluginUnitTooltipStats-1.0")
 local PluginDBM = LibStub("StarLibPluginDBM-1.0", true)
 local PluginLinq = LibStub("StarLibPluginLinq-1.0", true)
 assert(PluginLinq, MAJOR .. " requires StarLibPluginLinq-1.0")
@@ -368,7 +368,7 @@ PluginString:New(environment)
 PluginTable:New(environment)
 PluginResourceTools:New(environment)
 PluginLocation:New(environment)
-PluginUnitStats:New(environment)
+PluginUnitTooltipStats:New(environment)
 if PluginDBM then PluginDBM:New(environment) end
 --PluginLinq:New(environment)
 --]]