public void animateOut(float duration, float delay) { alpha = t = 1; NumberProperty p = positionTween.getNumber("t"); p.setEnd(0f); positionTween.setDuration(duration).delay(delay).play(); }
public void fadeOut(float duration, float delay) { alpha = t = 1; NumberProperty p = alphaTween.getNumber("alpha"); p.setEnd(0f); alphaTween .setDuration(duration) .delay(delay) // .onEnd(this, "hide") .play(); }
public void fadeIn(float duration, float delay) { alpha = 0; t = 1; NumberProperty p = alphaTween.getNumber("alpha"); p.setEnd(1f); alphaTween .setDuration(duration) .delay(delay) // .onStart(this, "show") .play(); }