Fixed loading
p3lim-52096 [12-27-08 - 08:24]
Fixed loading
Fixed visibility
git-svn-id: svn://svn.wowinterface.com/oUF_Reputation-398/trunk@3 f82d3c14-86d8-4125-bab8-f0c326a23617
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)