本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.addActor()
方法的一些代码示例,展示了WidgetGroup.addActor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetGroup.addActor()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
类名称:WidgetGroup
方法名:addActor
暂无
代码示例来源:origin: libgdx/libgdx
/** Creates a new widget group containing the specified actors. */
public WidgetGroup (Actor... actors) {
for (Actor actor : actors)
addActor(actor);
}
代码示例来源:origin: libgdx/libgdx
/** Creates a new widget group containing the specified actors. */
public WidgetGroup (Actor... actors) {
for (Actor actor : actors)
addActor(actor);
}
代码示例来源:origin: libgdx/libgdx
/** @param actor May be null. */
public void setActor (T actor) {
if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
if (actor == this.actor) return;
if (this.actor != null) super.removeActor(this.actor);
this.actor = actor;
if (actor != null) super.addActor(actor);
}
代码示例来源:origin: libgdx/libgdx
/** Sets the {@link Actor} embedded in this scroll pane.
* @param actor May be null to remove any current actor. */
public void setActor (Actor actor) {
if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
if (this.widget != null) super.removeActor(this.widget);
this.widget = actor;
if (widget != null) super.addActor(widget);
}
代码示例来源:origin: libgdx/libgdx
/** @param actor May be null. */
public void setActor (T actor) {
if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
if (actor == this.actor) return;
if (this.actor != null) super.removeActor(this.actor);
this.actor = actor;
if (actor != null) super.addActor(actor);
}
代码示例来源:origin: libgdx/libgdx
/** Sets the {@link Actor} embedded in this scroll pane.
* @param actor May be null to remove any current actor. */
public void setActor (Actor actor) {
if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
if (this.widget != null) super.removeActor(this.widget);
this.widget = actor;
if (widget != null) super.addActor(widget);
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Creates a new widget group containing the specified actors. */
public WidgetGroup (Actor... actors) {
for (Actor actor : actors)
addActor(actor);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** @param actor May be null. */
public void setActor (T actor) {
if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
if (actor == this.actor) return;
if (this.actor != null) super.removeActor(this.actor);
this.actor = actor;
if (actor != null) super.addActor(actor);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Sets the {@link Actor} embedded in this scroll pane.
* @param actor May be null to remove any current actor. */
public void setActor (Actor actor) {
if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
if (this.widget != null) super.removeActor(this.widget);
this.widget = actor;
if (widget != null) super.addActor(widget);
}
代码示例来源:origin: kotcrab/vis-ui
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: mbrlabs/Mundus
/**
* @param widget
* May be null.
*/
public void setFirstWidget(Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: kotcrab/vis-ui
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: kotcrab/vis-ui
@Override
public void addActor (final Actor actor) {
getActor().addActor(actor);
doOnAdd(actor);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: crashinvaders/gdx-texture-packer-gui
public void setActor(T actor) {
if (this.actor == actor) return;
if (this.actor != null) {
super.removeActor(this.actor, true);
}
if (actor != null) {
this.actor = actor;
origWidth = actor.getWidth();
origHeight = actor.getHeight();
super.addActor(actor);
}
}
内容来源于网络,如有侵权,请联系作者删除!