Quantcast

Made displayItemInfo part of WeightsWatcher and renamed it to displayItemStats

Kevin Lyles [09-22-09 - 10:55]
Made displayItemInfo part of WeightsWatcher and renamed it to displayItemStats
Filename
WeightsWatcher.lua
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 442463c..3b68173 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -23,7 +23,7 @@ currentHooks = {}

 function WeightsWatcher:HookTooltip(objectName, funcName)
 	local object = getglobal(objectName)
-	self:SecureHook(object, funcName, function(self, ...) DisplayItemInfo(self, objectName, ...) end)
+	self:SecureHook(object, funcName, function(self, ...) WeightsWatcher:displayItemStats(self, objectName, ...) end)
 	table.insert(currentHooks, {object, func})
 end

@@ -65,7 +65,7 @@ function WeightsWatcher:OnDisable()
 	end
 end

-function DisplayItemInfo(tooltip, ttname)
+function WeightsWatcher:displayItemStats(tooltip, ttname)
 	local itemType, ttleft, ttright, origTextL, textL, textR, pattern, func, stat, start
 	local _, link = tooltip:GetItem()