View Single Post
10-09-08, 04:58 PM   #71
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
I will post a request in oUF_Experience topic. should have though of that earlier

But still this bother me, this code below works, perfectly. Isn't there a way to alter it to work even on login ?

The only moment it doesn't work is when i login, reload, maybe zone. i then have to mouseover my player frame, and then it works just fine.

Code:
			self:SetScript("OnEnter", function(self)
				local origOnEnter = self.Experience:GetScript("OnEnter")
				self.Experience:SetScript('OnEnter', function(self,...) self:SetAlpha(1) origOnEnter(self, ...) end)
			end)

			self:SetScript("OnLeave", function(self)
				local origOnLeave = self.Experience:GetScript("OnLeave")
				self.Experience:SetScript('OnLeave', function(self, ...) self:SetAlpha(0) origOnLeave(self,...) end)
			end)
Thanks for your help btw.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }