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

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

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

Table.bottom介绍

[英]Adds Align#bottom and clears Align#top for the alignment of the logical table within the table actor.
[中]添加Align#bottom并清除Align#top,以便在table actor中对齐逻辑表。

代码示例

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

stage.addActor(table2);
table2.setFillParent(true);
table2.bottom();

代码示例来源:origin: moribitotech/MTX

/**
   * Set benchmark table position
   * */
  public void setUpPosition(BenchmarkPosition benchmarkPosition) {
    switch (benchmarkPosition) {
    case CENTER:
      table.center();
      break;
    case TOP_LEFT:
      table.top().left();
      break;
    case TOP_RIGHT:
      table.top().right();
      break;
    case BOTTOM_LEFT:
      table.bottom().left();
      break;
    case BOTTOM_RIGHT:
      table.bottom().right();
      break;
    default:
      table.top().left();
      break;
    }
  }
}

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

@Override
public void doneLoading(AssetManager assetManager) {
  skin = GlobalResources.skin;
  mainTable = new Table(skin);
  time = new OwnLabel("", skin, "ui-13");
  mainTable.add(time);
  mainTable.setFillParent(true);
  mainTable.right().bottom();
  mainTable.pad(5);
  // MESSAGES INTERFACE - LOW CENTER
  messagesInterface = new MessagesInterface(skin, lock);
  messagesInterface.setFillParent(true);
  messagesInterface.left().bottom();
  messagesInterface.pad(0, 300, 150, 0);
  // Add to GUI
  rebuildGui();
  EventManager.instance.subscribe(this, Events.TIME_CHANGE_INFO);
}

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

focusInterface.right().bottom();
focusInterface.pad(0, 0, 5, 5);
interfaces.add(focusInterface);
notificationsInterface.left().bottom();
notificationsInterface.pad(0, 5, 5, 0);
interfaces.add(notificationsInterface);
messagesInterface.left().bottom();
messagesInterface.pad(0, 300, 150, 0);
interfaces.add(messagesInterface);

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

notificationsInterface.left().bottom();
notificationsInterface.pad(0, 5, 5, 0);
interfaces.add(notificationsInterface);
messagesInterface.left().bottom();
messagesInterface.pad(0, 300, 150, 0);
interfaces.add(messagesInterface);
runStateInterface.center().bottom();

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

focusInterface.right().bottom();
focusInterface.pad(0, 0, pad, pad);
interfaces.add(focusInterface);
notificationsInterface.left().bottom();
notificationsInterface.pad(0, pad, pad, 0);
interfaces.add(notificationsInterface);
messagesInterface.left().bottom();
messagesInterface.pad(0, 300 * GlobalConf.SCALE_FACTOR, 150 * GlobalConf.SCALE_FACTOR, 0);
interfaces.add(messagesInterface);

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

private void buildGui() {
  // Component types name init
  for (ComponentType ct : ComponentType.values()) {
    ct.getName();
  }
  nf = NumberFormatFactory.getFormatter("##0.###");
  // NOTIFICATIONS ONE - BOTTOM LEFT
  notificationsOne = new NotificationsInterface(skin, lock, true, true, false, false);
  notificationsOne.setFillParent(true);
  notificationsOne.left().bottom();
  notificationsOne.pad(0, 5, 5, 0);
  interfaces.add(notificationsOne);
  // NOTIFICATIONS TWO - BOTTOM CENTRE
  notificationsTwo = new NotificationsInterface(skin, lock, true, true, false, false);
  notificationsTwo.setFillParent(true);
  notificationsTwo.bottom();
  notificationsTwo.setX(Gdx.graphics.getWidth() / 2);
  notificationsTwo.pad(0, 5, 5, 0);
  interfaces.add(notificationsTwo);
  /** ADD TO UI **/
  rebuildGui();
}

代码示例来源:origin: kotcrab/vis-editor

@Override
public void create () {
  VisUI.load();
  stage = new Stage(new ScreenViewport());
  final Table root = new Table();
  root.setFillParent(true);
  stage.addActor(root);
  TestWindow window = new TestWindow();
  TestCollapsible collapsible = new TestCollapsible();
  window.setKeepWithinParent(true);
  window.setPosition(110, 110);
  collapsible.setKeepWithinParent(true);
  collapsible.setPosition(200, 200);
  FloatingGroup floatingGroup = new FloatingGroup(1000, 600);
  floatingGroup.addActor(window);
  floatingGroup.addActor(collapsible);
  root.debugAll();
  root.left().bottom();
  root.add(floatingGroup).padLeft(100).padBottom(100);
  Gdx.input.setInputProcessor(stage);
}

代码示例来源:origin: bladecoder/bladecoder-adventure-engine

versionStack.pad(0);
versionStack.add(version);
versionStack.bottom().left();
versionStack.setFillParent(true);
versionStack.pack();

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

bottom.right().bottom();
bottom.pad(pad10);

代码示例来源:origin: manuelbua/uracer-kotd

buttons.add(quit).pad(0, 2, 0, 2);
bottom.left().bottom();
bottom.add(UIUtils.newVersionInfoLabel());

代码示例来源:origin: jsjolund/GdxDemo3D

rootTable.add(bottomRightTable).width(bottomRightTable.getPrefWidth()).height(bottomRightTable.getPrefHeight()).bottom().right();
rootTable.left().bottom();

代码示例来源:origin: bladecoder/bladecoder-adventure-engine

iconStackTable.row();
iconStackTable.add(credits);
iconStackTable.bottom().right();
iconStackTable.setFillParent(true);
iconStackTable.pack();

相关文章

微信公众号

最新文章

更多