本文整理了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
[英]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();
内容来源于网络,如有侵权,请联系作者删除!