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

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

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

Table.right介绍

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

代码示例

代码示例来源: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: manuelbua/uracer-kotd

bottom.add(btn_resume).padRight(5);
bottom.add(btn_quit);
bottom.right();

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

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

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

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

相关文章

微信公众号

最新文章

更多