From 3e15f253c181ffe104d9070af982e99470b4b8eb Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Tue, 22 Sep 2009 05:55:43 -0500 Subject: [PATCH] Made displayItemInfo part of WeightsWatcher and renamed it to displayItemStats --- WeightsWatcher.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 1.7.9.5