com.badlogic.gdx.scenes.scene2d.Stage.clear()方法的使用及代码示例

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

本文整理了Java中com.badlogic.gdx.scenes.scene2d.Stage.clear()方法的一些代码示例,展示了Stage.clear()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.clear()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Stage
类名称:Stage
方法名:clear

Stage.clear介绍

[英]Removes the root's children, actions, and listeners.
[中]删除根的子级、操作和侦听器。

代码示例

代码示例来源:origin: libgdx/libgdx

public void dispose () {
  clear();
  if (ownsBatch) batch.dispose();
}

代码示例来源:origin: libgdx/libgdx

public void dispose () {
  clear();
  if (ownsBatch) batch.dispose();
}

代码示例来源:origin: langurmonkey/gaiasky

@Override
protected void rebuildGui() {
  if (ui != null) {
    ui.clear();
    if (debugInterface != null)
      ui.addActor(debugInterface);
  }
}

代码示例来源:origin: com.badlogicgames.gdx/gdx

public void dispose () {
  clear();
  if (ownsBatch) batch.dispose();
}

代码示例来源:origin: stackoverflow.com

curStage .clear();

代码示例来源:origin: langurmonkey/gaiasky

protected void rebuildGui() {
  if (ui != null) {
    ui.clear();
    ui.addActor(mainTable);
    ui.addActor(messagesInterface);
  }
}

代码示例来源:origin: langurmonkey/gaiasky

protected void rebuildGui() {
  if (ui != null) {
    ui.clear();
    if (notificationsOne != null)
      ui.addActor(notificationsOne);
    if (notificationsTwo != null)
      ui.addActor(notificationsTwo);
  }
}

代码示例来源:origin: langurmonkey/gaiasky

public void clearGui() {
  if (ui != null) {
    ui.clear();
  }
  if (ddw != null) {
    ddw.remove();
  }
  if (cdw != null) {
    cdw.remove();
  }
}

代码示例来源:origin: langurmonkey/gaiasky

public void rebuildGui() {
  if (ui != null) {
    ui.clear();
    ui.addActor(screenMode);
    ui.addActor(center);
    ui.addActor(bottom);
  }
}

代码示例来源:origin: langurmonkey/gaiasky

public void rebuildGui() {
  if (ui != null) {
    ui.clear();
    if (debugInterface != null) {
      ui.addActor(debugInterface);
    }
    if (notificationsInterface != null) {
      ui.addActor(notificationsInterface);
    }
    if (messagesInterface != null) {
      ui.addActor(messagesInterface);
    }
    if (focusInterface != null) {
      ui.addActor(focusInterface);
    }
    if (inputInterface != null) {
      ui.addActor(inputInterface);
    }
  }
}

代码示例来源:origin: langurmonkey/gaiasky

public void rebuildGui() {
  if (ui != null) {
    ui.clear();
    if (debugInterface != null) {
      ui.addActor(debugInterface);
    }
    if (notificationsInterface != null) {
      ui.addActor(notificationsInterface);
    }
    if (messagesInterface != null) {
      ui.addActor(messagesInterface);
    }
    if (focusInterface != null) {
      ui.addActor(focusInterface);
    }
    if (inputInterface != null) {
      ui.addActor(inputInterface);
    }
  }
}

代码示例来源:origin: langurmonkey/gaiasky

protected void rebuildGui() {
  if (ui != null) {
    ui.clear();
    ui.addActor(buttonContainer);
    ui.addActor(engineGroup);

代码示例来源:origin: langurmonkey/gaiasky

protected void rebuildGui() {
    ui.clear();
    boolean collapsed = false;
    if (controlsWindow != null) {

相关文章