Fixed visibility
p3lim-52096 [12-27-08 - 08:24]
Fixed visibility
git-svn-id: svn://svn.wowinterface.com/oUF_Experience-227/trunk@24 f81be506-7a38-4956-9b9f-d707db2888a5
diff --git a/oUF_Experience/oUF_Experience.lua b/oUF_Experience/oUF_Experience.lua
index 835b1d0..844457f 100644
--- a/oUF_Experience/oUF_Experience.lua
+++ b/oUF_Experience/oUF_Experience.lua
@@ -27,9 +27,9 @@ local function Update(self, event, unit)
local bar = self.Experience
if(self.unit == 'pet' and UnitLevel('pet') == UnitLevel('player')) then
- bar:SetAlpha(0)
+ bar:Hide()
elseif(self.unit == 'player' and UnitLevel('player') == MAX_PLAYER_LEVEL) then
- bar:SetAlpha(0)
+ bar:Hide()
else
local min, max
if(self.unit == 'pet') then
@@ -42,6 +42,7 @@ local function Update(self, event, unit)
bar:SetValue(min)
bar:EnableMouse()
bar:SetStatusBarColor(unpack(bar.Colors or self.colors.health))
+ bar:Show()
if(not bar.MouseOver) then
bar:SetAlpha(1)