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

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

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

  1. stage.addActor(table2);
  2. table2.setFillParent(true);
  3. table2.bottom();

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

  1. /**
  2. * Set benchmark table position
  3. * */
  4. public void setUpPosition(BenchmarkPosition benchmarkPosition) {
  5. switch (benchmarkPosition) {
  6. case CENTER:
  7. table.center();
  8. break;
  9. case TOP_LEFT:
  10. table.top().left();
  11. break;
  12. case TOP_RIGHT:
  13. table.top().right();
  14. break;
  15. case BOTTOM_LEFT:
  16. table.bottom().left();
  17. break;
  18. case BOTTOM_RIGHT:
  19. table.bottom().right();
  20. break;
  21. default:
  22. table.top().left();
  23. break;
  24. }
  25. }
  26. }

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

  1. @Override
  2. public void doneLoading(AssetManager assetManager) {
  3. skin = GlobalResources.skin;
  4. mainTable = new Table(skin);
  5. time = new OwnLabel("", skin, "ui-13");
  6. mainTable.add(time);
  7. mainTable.setFillParent(true);
  8. mainTable.right().bottom();
  9. mainTable.pad(5);
  10. // MESSAGES INTERFACE - LOW CENTER
  11. messagesInterface = new MessagesInterface(skin, lock);
  12. messagesInterface.setFillParent(true);
  13. messagesInterface.left().bottom();
  14. messagesInterface.pad(0, 300, 150, 0);
  15. // Add to GUI
  16. rebuildGui();
  17. EventManager.instance.subscribe(this, Events.TIME_CHANGE_INFO);
  18. }

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

  1. focusInterface.right().bottom();
  2. focusInterface.pad(0, 0, 5, 5);
  3. interfaces.add(focusInterface);
  4. notificationsInterface.left().bottom();
  5. notificationsInterface.pad(0, 5, 5, 0);
  6. interfaces.add(notificationsInterface);
  7. messagesInterface.left().bottom();
  8. messagesInterface.pad(0, 300, 150, 0);
  9. interfaces.add(messagesInterface);

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

  1. notificationsInterface.left().bottom();
  2. notificationsInterface.pad(0, 5, 5, 0);
  3. interfaces.add(notificationsInterface);
  4. messagesInterface.left().bottom();
  5. messagesInterface.pad(0, 300, 150, 0);
  6. interfaces.add(messagesInterface);
  7. runStateInterface.center().bottom();

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

  1. focusInterface.right().bottom();
  2. focusInterface.pad(0, 0, pad, pad);
  3. interfaces.add(focusInterface);
  4. notificationsInterface.left().bottom();
  5. notificationsInterface.pad(0, pad, pad, 0);
  6. interfaces.add(notificationsInterface);
  7. messagesInterface.left().bottom();
  8. messagesInterface.pad(0, 300 * GlobalConf.SCALE_FACTOR, 150 * GlobalConf.SCALE_FACTOR, 0);
  9. interfaces.add(messagesInterface);

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

  1. private void buildGui() {
  2. // Component types name init
  3. for (ComponentType ct : ComponentType.values()) {
  4. ct.getName();
  5. }
  6. nf = NumberFormatFactory.getFormatter("##0.###");
  7. // NOTIFICATIONS ONE - BOTTOM LEFT
  8. notificationsOne = new NotificationsInterface(skin, lock, true, true, false, false);
  9. notificationsOne.setFillParent(true);
  10. notificationsOne.left().bottom();
  11. notificationsOne.pad(0, 5, 5, 0);
  12. interfaces.add(notificationsOne);
  13. // NOTIFICATIONS TWO - BOTTOM CENTRE
  14. notificationsTwo = new NotificationsInterface(skin, lock, true, true, false, false);
  15. notificationsTwo.setFillParent(true);
  16. notificationsTwo.bottom();
  17. notificationsTwo.setX(Gdx.graphics.getWidth() / 2);
  18. notificationsTwo.pad(0, 5, 5, 0);
  19. interfaces.add(notificationsTwo);
  20. /** ADD TO UI **/
  21. rebuildGui();
  22. }

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

  1. @Override
  2. public void create () {
  3. VisUI.load();
  4. stage = new Stage(new ScreenViewport());
  5. final Table root = new Table();
  6. root.setFillParent(true);
  7. stage.addActor(root);
  8. TestWindow window = new TestWindow();
  9. TestCollapsible collapsible = new TestCollapsible();
  10. window.setKeepWithinParent(true);
  11. window.setPosition(110, 110);
  12. collapsible.setKeepWithinParent(true);
  13. collapsible.setPosition(200, 200);
  14. FloatingGroup floatingGroup = new FloatingGroup(1000, 600);
  15. floatingGroup.addActor(window);
  16. floatingGroup.addActor(collapsible);
  17. root.debugAll();
  18. root.left().bottom();
  19. root.add(floatingGroup).padLeft(100).padBottom(100);
  20. Gdx.input.setInputProcessor(stage);
  21. }

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

  1. versionStack.pad(0);
  2. versionStack.add(version);
  3. versionStack.bottom().left();
  4. versionStack.setFillParent(true);
  5. versionStack.pack();

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

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

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

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

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

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

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

  1. iconStackTable.row();
  2. iconStackTable.add(credits);
  3. iconStackTable.bottom().right();
  4. iconStackTable.setFillParent(true);
  5. iconStackTable.pack();

相关文章