View Single Post
02-01-14, 07:26 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
No, he means that if you do:
Code:
local frame = CreateFrame("Frame")
frame:SetAlpha(0)

local group = frame:CreateAnimationGroup()

local anim = group:CreateAnimation("ALPHA")
anim:SetChange(1)
anim:SetDuration(1)

group:Play()
... the frame will fade in from 0% to 100% opacity over 1 second, but at the end of the 1 second, it will drop back to the original 0% opacity. He wants an option for it to remain at the 100% opacity state, without having to add an OnFinished script that manually applies that value. For an alpha animation, that's obviously easy, but for an animation group that's moving and rotating whole frames, for example, the whole point of using the animation is so that you don't have to do all the math yourself to move and rotate the frame, so it's annoying to have to manually duplicate the final state of the animation in an OnFinished script.

Looping would not help here, as a loop would just make the frame fade in and out repeatedly, which is not the desired behavior.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote