From d0121da4c5c86df6859ce2d942f85c0eddfac51c Mon Sep 17 00:00:00 2001 From: p3lim Date: Tue, 7 Sep 2010 03:25:56 +0200 Subject: [PATCH] Remove tooltip option - The layout should be in charge of this --- oUF_Reputation.lua | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua index 9a84b28..10c3be3 100644 --- a/oUF_Reputation.lua +++ b/oUF_Reputation.lua @@ -1,11 +1,3 @@ -local function tooltip(self) - local name, id, min, max, value = GetWatchedFactionInfo() - GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMRIGHT', 5, -5) - GameTooltip:AddLine(string.format('%s (%s)', name, _G['FACTION_STANDING_LABEL'..id])) - GameTooltip:AddLine(string.format('%d / %d (%d%%)', value - min, max - min, (value - min) / (max - min) * 100)) - GameTooltip:Show() -end - local function update(self, event, unit) local bar = self.Reputation if(not GetWatchedFactionInfo()) then return bar:Hide() end @@ -35,12 +27,6 @@ local function enable(self, unit) self:RegisterEvent('UPDATE_FACTION', update) - if(bar.Tooltip) then - bar:EnableMouse() - bar:HookScript('OnLeave', GameTooltip_Hide) - bar:HookScript('OnEnter', tooltip) - end - return true end end -- 1.7.9.5