View Single Post
Unread 04-29-09, 06:23 PM   #1017
Tastyfrog
A Deviate Faerie Dragon
Join Date: Mar 2009
Posts: 15
I wanted to change ouf_BarFader to fade the bars slowly... unfortunately im pretty new to lua
This is what i have so far, but it doesnt seem to be working
Code:
local function Update(self)
	local currentAlpha = self:GetAlpha()
	if(Validation(self, self.unit)) then
		if(currentAlpha > 0.2) then
			self:SetAlpha((currentAlpha - 0.1))
		end
	else
		if(currentAlpha < 1.0) then
			self:SetAlpha((currentAlpha + 0.1))
		end
	end
end
any help?
Tastyfrog is offline