Java 类com.badlogic.gdx.scenes.scene2d.actions.AlphaAction 实例源码

项目:OdysseeDesMaths    文件:MenuPrincipal.java   
private void play() {
    AlphaAction alphaAction = new AlphaAction();
    alphaAction.setAlpha(0);
    alphaAction.setDuration(0.5f);
    play.addAction(alphaAction);
    play.setTouchable(Touchable.disabled);

    MoveToAction moveToAction = new MoveToAction();
    moveToAction.setPosition(gameTitle.getX(), HEIGHT * 12 / 13 - gameTitle.getHeight());
    moveToAction.setDuration(2);
    gameTitle.addAction(moveToAction);

    Timer.instance().clear();
    gameTitle.setText("L'Odyssée des Maths");
    currentState = State.TRANSITION;
}
项目:ingress-indonesia-dev    文件:c.java   
public final void b(boolean paramBoolean)
{
  a();
  float f;
  AlphaAction localAlphaAction;
  if (paramBoolean)
  {
    f = 1.0F;
    localAlphaAction = Actions.alpha(f, 0.5F, Interpolation.fade);
    if (!paramBoolean)
      break label60;
  }
  label60: for (this.c = Actions.sequence(Actions.visible(true), localAlphaAction, Actions.touchable(this.b)); ; this.c = Actions.sequence(Actions.touchable(Touchable.disabled), localAlphaAction, Actions.visible(false)))
  {
    this.a.addAction(this.c);
    return;
    f = 0.0F;
    break;
  }
}
项目:Tower-Defense-Galaxy    文件:MessageWindow.java   
@Override
public void act(float delta) {
    super.act(delta);
    table.act(delta);
    switch (state) {
        case 0:
            if(!Gdx.input.isTouched())
                state++;
            break;
        case 1:
            if(Gdx.input.isTouched())
                state++;
            break;
        case 2:
            if(!Gdx.input.isTouched()) {
                AlphaAction action = new AlphaAction();
                action.setAlpha(0f);
                action.setDuration(0.3f);
                addAction(new SequenceAction(action, new RunnableAction() {
                    @Override
                    public void run() {
                        remove();
                    }
                }));
                state++;
            }
            break;
    }
}
项目:bobbybird    文件:GameState.java   
private void showScore() {
    table.clear();

    scoreLabel = new Label(Integer.toString(score), skin, "score");
    scoreLabel.setColor(1.0f, 1.0f, 1.0f, 0.0f);
    table.add(scoreLabel).padTop(30.0f).expandY().top();

    AlphaAction alphaAction = new AlphaAction();
    alphaAction.setAlpha(1.0f);
    alphaAction.setDuration(.5f);
    scoreLabel.addAction(alphaAction);
}
项目:skin-composer    文件:MenuList.java   
public void hide() {
    //fade out and then remove
    clearActions();
    AlphaAction alphaAction = new AlphaAction();
    alphaAction.setAlpha(0.0f);
    alphaAction.setDuration(.3f);
    alphaAction.setInterpolation(Interpolation.fade);
    RemoveActorAction removeAction = new RemoveActorAction();
    removeAction.setActor(this);
    SequenceAction sequenceAction = new SequenceAction(alphaAction, removeAction);
    addAction(sequenceAction);
}
项目:LiftOffGame    文件:GameScreen.java   
public void rocketPlatformOnAnimation(){
    MoveToAction action = Actions.action(MoveToAction.class);
      action.setPosition(-100, 100);
      action.setDuration(1f);
      game.platform.addAction(action);

      AlphaAction action6 = Actions.action(AlphaAction.class);
     // action6.setRotation(90f);
      action6.setColor(Color.CLEAR);
      action6.setDuration(1f);
      game.platform.addAction(action6);
}
项目:spezi-gdx    文件:Animations.java   
public static AlphaAction alphaAction(Color destination, float newAlpha) {
    AlphaAction alpha = Actions.alpha(newAlpha);
    alpha.setColor(destination);
    return alpha;
}
项目:spezi-gdx    文件:Animations.java   
public static AlphaAction alphaAction(Color destination, float newAlpha,
        float time) {
    AlphaAction alpha = Actions.alpha(newAlpha, time);
    alpha.setColor(destination);
    return alpha;
}
项目:spezi-gdx    文件:Animations.java   
public static AlphaAction alphaAction(Color destination, float newAlpha,
        float time, Interpolation interpolation) {
    AlphaAction alpha = Actions.alpha(newAlpha, time, interpolation);
    alpha.setColor(destination);
    return alpha;
}