From 7a6e174a678332d446689cee38f9cafacf7c551c Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Sat, 27 Dec 2008 08:24:04 +0000 Subject: [PATCH] Fixed loading Fixed visibility git-svn-id: svn://svn.wowinterface.com/oUF_Reputation-398/trunk@3 f82d3c14-86d8-4125-bab8-f0c326a23617 --- oUF_Reputation/oUF_Reputation.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oUF_Reputation/oUF_Reputation.lua b/oUF_Reputation/oUF_Reputation.lua index 374c1af..85dc0e8 100644 --- a/oUF_Reputation/oUF_Reputation.lua +++ b/oUF_Reputation/oUF_Reputation.lua @@ -26,6 +26,7 @@ local function Update(self, event, unit) bar:SetValue(value) bar:EnableMouse() bar:SetStatusBarColor(unpack(bar.Colors or {FACTION_BAR_COLORS[id].r, FACTION_BAR_COLORS[id].g, FACTION_BAR_COLORS[id].b})) + bar:Show() if(not bar.MouseOver) then bar:SetAlpha(1) @@ -45,11 +46,13 @@ local function Update(self, event, unit) bar:SetScript('OnEnter', function() bar:SetAlpha(1) end) bar:SetScript('OnLeave', function() bar:SetAlpha(0) end) end + else + bar:Hide() end end local function Enable(self, unit) - local reputation = self.Experience + local reputation = self.Reputation if(reputation and unit == 'player') then self:RegisterEvent('UPDATE_FACTION', Update) -- 1.7.9.5