com.badlogic.gdx.scenes.scene2d.ui.Table.addActor()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(95)

本文整理了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

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);

相关文章

微信公众号

最新文章

更多