View Single Post
10-05-08, 10:22 AM   #34
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
...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 View Post
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.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }

Last edited by Caellian : 10-05-08 at 10:29 AM.