Start move animation not triggering move on all MoveAnimator
I am creating a menu similar to TouchGFX Dem1 1 for an STM32F767. I have had succes expanding the menu options from the original size to varios menu size (6,7,9) menu options. For some reason when I try to add the 10th element the animation of only the 10th element is never started. Is there any limitation on the amount of concurrent animations? What could prevent the animation from being started or canceled?
void ScreenSelectorView::StartFadeOutAnimation()
{
int button_cont_duration = 30;
int i;
int button_cont_endX = 0;
int button_cont_endY = 0;
touchgfx_printf( "NUMBER_OF_BUTTONS = %u \n" , NUMBER_OF_BUTTONS);
for (i = 0; i < 10; i++) {
/* Start closing animation */
icons[i].setFadeAnimationDelay(FADE_OUT_ANIMATION_DURATION - i);
icons[i].startFadeAnimation(0, FADE_OUT_ANIMATION_DURATION);
texts[i].setFadeAnimationDelay(FADE_OUT_ANIMATION_DURATION - i);
texts[i].startFadeAnimation(0, FADE_OUT_ANIMATION_DURATION);
buttonContainers[i].setMoveAnimationDelay(FADE_OUT_ANIMATION_DURATION);
button_cont_endX = 400;
button_cont_endY = 200 ;
buttonContainers[i].startMoveAnimation(button_cont_endX,button_cont_endY , button_cont_duration,
EasingEquations::linearEaseNone, EasingEquations::backEaseOut);
touchgfx_printf( "i = %u endx = %u endy = %u \n", i, button_cont_endX , button_cont_endY);
buttonContainers[i].invalidate();
}
currentAnimationState = ANIMATE_BUTTONS_INTO_BOX;
}class ScreenSelectorView : public ScreenSelectorViewBase
{
public:
... Same as in example ...
protected:
... Same as in example ...
MoveAnimator<Container> buttonContainers[NUMBER_OF_BUTTONS];
};
By using touchgfx_printf I can verify that the buttonContainers[i].startMoveAnimation is indeed called 10 times with the correct parameters. However, only the first 9 buttons will move to the center of the screen.
