Quantcast

Remove tooltip option

p3lim [09-07-10 - 01:25]
Remove tooltip option
- The layout should be in charge of this
Filename
oUF_Reputation.lua
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