本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.addActor()
方法的一些代码示例,展示了Table.addActor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.addActor()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Table
类名称:Table
方法名:addActor
暂无
代码示例来源:origin: libgdx/libgdx
/** Sets the actor in this cell and adds the actor to the cell's table. If null, removes any current actor. */
public <A extends Actor> Cell<A> setActor (A newActor) {
if (actor != newActor) {
if (actor != null && actor.getParent() == table) actor.remove();
actor = newActor;
if (newActor != null) table.addActor(newActor);
}
return (Cell<A>)this;
}
代码示例来源:origin: 121077313/cocostudio-ui-libgdx
continue;
table.addActor(childrenActor);
代码示例来源:origin: libgdx/libgdx
/** Sets the actor in this cell and adds the actor to the cell's table. If null, removes any current actor. */
public <A extends Actor> Cell<A> setActor (A newActor) {
if (actor != newActor) {
if (actor != null && actor.getParent() == table) actor.remove();
actor = newActor;
if (newActor != null) table.addActor(newActor);
}
return (Cell<A>)this;
}
代码示例来源:origin: libgdx/libgdx
if (actor != null) addActor(actor);
代码示例来源:origin: libgdx/libgdx
if (actor != null) addActor(actor);
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Sets the actor in this cell and adds the actor to the cell's table. If null, removes any current actor. */
public <A extends Actor> Cell<A> setActor (A newActor) {
if (actor != newActor) {
if (actor != null && actor.getParent() == table) actor.remove();
actor = newActor;
if (newActor != null) table.addActor(newActor);
}
return (Cell<A>)this;
}
代码示例来源:origin: 121077313/cocostudio-ui-libgdx
@Override
public Group groupChildrenParse(CocoCreatorUIEditor editor,
ObjectData widget, Group parent, Actor actor) {
ScrollPane scrollPane = (ScrollPane) actor;
Table table = new Table();
for (ObjectData childrenWidget : widget.getChildren()) {
Actor childrenActor = editor.parseWidget(table, childrenWidget);
if (childrenActor == null) {
continue;
}
table.setSize(Math.max(table.getWidth(), childrenActor.getRight()),
Math.max(table.getHeight(), childrenActor.getTop()));
table.addActor(childrenActor);
}
sort(widget, table);
//
scrollPane.setWidget(table);
return scrollPane;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
if (actor != null) addActor(actor);
代码示例来源:origin: 121077313/cocostudio-ui-libgdx
table.addActor(bg);
代码示例来源:origin: manuelbua/uracer-kotd
root.addActor(bg);
代码示例来源:origin: manuelbua/uracer-kotd
root.addActor(bg);
内容来源于网络,如有侵权,请联系作者删除!