From 40766dfa5a976b5991b2a37e2cd8f0da31e9f2e5 Mon Sep 17 00:00:00 2001 From: p3lim Date: Mon, 6 Sep 2010 22:34:41 +0200 Subject: [PATCH] Remove tooltip option - The layout should be in charge of this --- oUF_Experience.lua | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/oUF_Experience.lua b/oUF_Experience.lua index 7db410c..4db3d5d 100644 --- a/oUF_Experience.lua +++ b/oUF_Experience.lua @@ -12,23 +12,6 @@ local function GetXP(unit) end end -local function SetTooltip(self) - local unit = self:GetParent().unit - local min, max = GetXP(unit) - - local bars = unit == 'pet' and 6 or 20 - - GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMRIGHT', 5, -5) - GameTooltip:AddLine(string.format('XP: %d / %d (%d%% - %d bars)', min, max, min/max * 100, bars)) - GameTooltip:AddLine(string.format('Remaining: %d (%d%% - %d bars)', max - min, (max - min) / max * 100, bars * (max - min) / max)) - - if(self.rested) then - GameTooltip:AddLine(string.format('|cff0090ffRested: +%d (%d%%)', self.rested, self.rested / max * 100)) - end - - GameTooltip:Show() -end - local function Update(self, event, owner) if(event == 'UNIT_PET' and owner ~= 'player') then return end @@ -95,12 +78,6 @@ local function Enable(self, unit) self:RegisterEvent('UNIT_PET_EXPERIENCE', Update) end - if(not experience.noTooltip) then - experience:EnableMouse() - experience:HookScript('OnLeave', GameTooltip_Hide) - experience:HookScript('OnEnter', SetTooltip) - end - if(not experience:GetStatusBarTexture()) then experience:SetStatusBarTexture([=[Interface\TargetingFrame\UI-StatusBar]=]) end -- 1.7.9.5