if( consumed )
{
mPressedAnimation = Animation::New( BUTTON_PRESS_ANIMATION_TIME );
- mPressedAnimation.SetDestroyAction( Animation::Discard );
+ mPressedAnimation.SetEndAction( Animation::Discard );
// scale the content actor within the Tile, as to not affect the placement within the Table.
Actor content = actor.GetChildAt(0);
{
// has parent so we expect it to be on stage, start animation
mRotateAnimation = Animation::New( ORIENTATION_DURATION );
- mRotateAnimation.SetDestroyAction( Animation::Bake );
mRotateAnimation.RotateTo( mView, Degree( -orientation ), Vector3::ZAXIS, AlphaFunctions::EaseOut );
mRotateAnimation.Resize( mView, targetSize.width, targetSize.height );
mRotateAnimation.Play();
{
// has parent so we expect it to be on stage, start animation
mRotateAnimation = Animation::New( ORIENTATION_DURATION );
- mRotateAnimation.SetDestroyAction( Animation::Bake );
mRotateAnimation.RotateTo( mView, Degree( -orientation ), Vector3::ZAXIS, AlphaFunctions::EaseOut );
mRotateAnimation.Resize( mView, targetSize.width, targetSize.height );
mRotateAnimation.Play();