Beispiel #1
0
  public void animateOut(float duration, float delay) {
    alpha = t = 1;

    NumberProperty p = positionTween.getNumber("t");
    p.setEnd(0f);
    positionTween.setDuration(duration).delay(delay).play();
  }
Beispiel #2
0
  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();
  }
Beispiel #3
0
  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();
  }