List of usage examples for com.badlogic.gdx.scenes.scene2d.actions RemoveActorAction setActor
public void setActor(Actor actor)
From source file:com.ray3k.skincomposer.MenuList.java
License:Open Source License
public void hide() { //fade out and then remove clearActions();/*from www. ja va2 s. c o m*/ 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); }