/** Calls {@link #setDebug(boolean)} with {@code true}. */ public Actor debug () { setDebug(true); return this; }
/** Calls {@link #setDebug(boolean)} with {@code true}. */ public Actor debug () { setDebug(true); return this; }
/** Disables debug on all actors recursively except the specified actor and any children. */ private void disableDebug (Actor actor, Actor except) { if (actor == except) return; actor.setDebug(false); if (actor instanceof Group) { SnapshotArray<Actor> children = ((Group)actor).children; for (int i = 0, n = children.size; i < n; i++) disableDebug(children.get(i), except); } }
/** Disables debug on all actors recursively except the specified actor and any children. */ private void disableDebug (Actor actor, Actor except) { if (actor == except) return; actor.setDebug(false); if (actor instanceof Group) { SnapshotArray<Actor> children = ((Group)actor).children; for (int i = 0, n = children.size; i < n; i++) disableDebug(children.get(i), except); } }
/** If true, {@link #drawDebug(ShapeRenderer)} will be called for this group and, optionally, all children recursively. */ public void setDebug (boolean enabled, boolean recursively) { setDebug(enabled); if (recursively) { for (Actor child : children) { if (child instanceof Group) { ((Group)child).setDebug(enabled, recursively); } else { child.setDebug(enabled); } } } }
/** If true, {@link #drawDebug(ShapeRenderer)} will be called for this group and, optionally, all children recursively. */ public void setDebug (boolean enabled, boolean recursively) { setDebug(enabled); if (recursively) { for (Actor child : children) { if (child instanceof Group) { ((Group)child).setDebug(enabled, recursively); } else { child.setDebug(enabled); } } } }
actor.setDebug(true); else { while (actor != null) {
actor.setDebug(true); else { while (actor != null) {
/** Calls {@link #setDebug(boolean)} with {@code true}. */ public Actor debug () { setDebug(true); return this; }
public TypedGdxQuery<T> debug(boolean debug){ t.setDebug(debug); return this; }
public boolean touchDown(InputEvent event, float px, float py, int pointer, int but) { if (nowActor != actor) { messeg = "ѡȡ"; if (prefActor != null) prefActor.setDebug(false); prefActor = nowActor; if (prefActor != null) prefActor.setDebug(true); nowActor = actor; nowActor.setDebug(true); } starX = px; starY = py; String xy; xy = "X:" + (int) actor.getX() + ",Y:" + (int) actor.getY(); msg(actor, data, xy); return true; }
public GdxQuery debug(boolean debug){ for(Actor actor:list()) actor.setDebug(debug); return this; }
/** Disables debug on all actors recursively except the specified actor and any children. */ private void disableDebug (Actor actor, Actor except) { if (actor == except) return; actor.setDebug(false); if (actor instanceof Group) { SnapshotArray<Actor> children = ((Group)actor).children; for (int i = 0, n = children.size; i < n; i++) disableDebug(children.get(i), except); } }
/** If true, {@link #drawDebug(ShapeRenderer)} will be called for this group and, optionally, all children recursively. */ public void setDebug (boolean enabled, boolean recursively) { setDebug(enabled); if (recursively) { for (Actor child : children) { if (child instanceof Group) { ((Group)child).setDebug(enabled, recursively); } else { child.setDebug(enabled); } } } }
for (final Actor actor : stage.getRoot().getChildren()) { Data data = allDatas.get(actor); actor.setDebug(false); actor.setTouchable(data.prefTouchable); if (actor instanceof Group) {
actor.setDebug(true); else { while (actor != null) {
actor.setDebug(model.isDebugEnabled());