Skip to content

Commit

Permalink
Added Group#clear(boolean).
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Feb 21, 2021
1 parent 909fd8a commit b501260
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGES
@@ -1,7 +1,7 @@
[1.9.15]
- [BREAKING CHANGE] Requires Java 7 or above
- [BREAKING CHANGE] Requires Java 7 or above.
- [BREAKING CHANGE] API Change: Scaling is now an object instead of an enum. This may change behavior when used with serialization.
- [BREAKING CHANGE] Group#clearChildren() now unfocuses the actors. Added Group#clearChildren(boolean unfocus) for when this isn't wanted. #6423
- [BREAKING CHANGE] Group#clear and #clearChildren() now unfocuses the actors. Added #clear(boolean) and #clearChildren(boolean) for when this isn't wanted. #6423
- Scene2d.ui: Added new ParticleEffectActor to use particle effects on Stage
- API addition: iOS: Added HdpiMode option to IOSApplicationConfiguration to allow users to set whether they want to work in logical or raw pixels (default logical).
- Fix for #6377 Gdx.net.openURI not working with targetSdk 30
Expand Down
10 changes: 8 additions & 2 deletions gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java
Expand Up @@ -371,10 +371,16 @@ public void clearChildren (boolean unfocus) {
childrenChanged();
}

/** Removes all children, actions, and listeners from this group. */
/** Removes all children, actions, and listeners from this group. The children are unfocused. */
public void clear () {
super.clear();
clearChildren();
clearChildren(true);
}

/** Removes all children, actions, and listeners from this group. */
public void clear (boolean unfocus) {
super.clear();
clearChildren(unfocus);
}

/** Returns the first actor found with the specified name. Note this recursively compares the name of every actor in the
Expand Down

0 comments on commit b501260

Please sign in to comment.