本文整理了Java中com.badlogic.gdx.scenes.scene2d.Actor.setDebug()
方法的一些代码示例,展示了Actor.setDebug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Actor.setDebug()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Actor
类名称:Actor
方法名:setDebug
[英]If true, #drawDebug(ShapeRenderer) will be called for this actor.
[中]如果为true,将为此参与者调用#drawDebug(shaperender)。
代码示例来源:origin: libgdx/libgdx
/** Calls {@link #setDebug(boolean)} with {@code true}. */
public Actor debug () {
setDebug(true);
return this;
}
代码示例来源:origin: libgdx/libgdx
/** Calls {@link #setDebug(boolean)} with {@code true}. */
public Actor debug () {
setDebug(true);
return this;
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
}
}
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
}
}
}
代码示例来源:origin: libgdx/libgdx
actor.setDebug(true);
else {
while (actor != null) {
代码示例来源:origin: libgdx/libgdx
actor.setDebug(true);
else {
while (actor != null) {
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Calls {@link #setDebug(boolean)} with {@code true}. */
public Actor debug () {
setDebug(true);
return this;
}
代码示例来源:origin: dingjibang/GDX-RPG
public TypedGdxQuery<T> debug(boolean debug){
t.setDebug(debug);
return this;
}
代码示例来源:origin: Var3D/var3dframe
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;
}
代码示例来源:origin: dingjibang/GDX-RPG
public GdxQuery debug(boolean debug){
for(Actor actor:list())
actor.setDebug(debug);
return this;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** 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);
}
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** 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);
}
}
}
}
代码示例来源:origin: Var3D/var3dframe
for (final Actor actor : stage.getRoot().getChildren()) {
Data data = allDatas.get(actor);
actor.setDebug(false);
actor.setTouchable(data.prefTouchable);
if (actor instanceof Group) {
代码示例来源:origin: com.badlogicgames.gdx/gdx
actor.setDebug(true);
else {
while (actor != null) {
代码示例来源:origin: peakgames/libgdx-stagebuilder
actor.setDebug(model.isDebugEnabled());
内容来源于网络,如有侵权,请联系作者删除!