Exemple #1
0
 /**
  * Removes an actor from this group. If the actor will not be used again and has actions, they
  * should be {@link Actor#clearActions() cleared} so the actions will be returned to their {@link
  * Action#setPool(com.badlogic.gdx.utils.Pool) pool}, if any. This is not done automatically.
  */
 public boolean removeActor(Actor actor) {
   if (!children.removeValue(actor, true)) return false;
   Stage stage = getStage();
   if (stage != null) stage.unfocus(actor);
   actor.setParent(null);
   actor.setStage(null);
   childrenChanged();
   return true;
 }
Exemple #2
0
 public boolean removeCaptureListener(EventListener listener) {
   return captureListeners.removeValue(listener, true);
 }