/** Removes the root's children, actions, and listeners. */ public void clear () { unfocusAll(); root.clear(); }
/** Removes the root's children, actions, and listeners. */ public void clear () { unfocusAll(); root.clear(); }
/** Removes the root's children, actions, and listeners. */ public void clear () { unfocusAll(); root.clear(); }
/** * Dispose group from a group * */ public static void disposeGroup(Group group, Group groupToBeDisposed) { if (group != null && groupToBeDisposed != null) { try { groupToBeDisposed.clear(); if (group.removeActor(groupToBeDisposed)) log("Actor disposed", groupToBeDisposed); } catch (Exception e) { log("Actor dispose FAIL!", groupToBeDisposed); } } }
public void skip() { if(skiping) return; skiping = true; seManager.stop(); Image mask = UI.base(); mask.query().fillParent().color(Color.BLACK).fadeOut().action(Actions.sequence(Actions.fadeIn(.5f), Actions.run(() -> { //所有stages已经播放完毕 if(currentStage + 1 == stages.size()){ Views.addView(TitleView.class); remove(); return; } skiping = false; group.clear(); group.addAction(stages.get(++currentStage)); mask.addAction(Actions.sequence(Actions.fadeOut(.5f), Actions.removeActor())); }))).to(stage); }