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?