...I am not editing, i am not editing, i am not editing...
Nvm the above, actually i didn't even need to use that, i just edited my current OnEnter/OnLeave, thanks for the hints.
Code:
self:SetScript("OnEnter", function(self)
if(unit == 'player') then self.Experience:Show() end
UnitFrame_OnEnter(self)
end)
self:SetScript("OnLeave", function(self)
if(unit == 'player') then self.Experience:Hide() end
UnitFrame_OnLeave(self)
end)
Originally Posted by Slakah
You'll need to set the alpha to 0 when it's loaded as well, or else it will be shown until moused over.
|
I've added self.Experience:Hide() to the exp block but it still is shown on login though.