本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.setHeight()
方法的一些代码示例,展示了Table.setHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setHeight()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Table
类名称:Table
方法名:setHeight
暂无
代码示例来源:origin: narfman0/GDXWorld
public static Table buildTable(Color tableColor, Color pixmapColor){
Pixmap pixmap = new Pixmap(1, 1, Format.RGBA8888);
pixmap.setColor(pixmapColor);
pixmap.fill();
Table table = new Table();
table.setWidth(Gdx.graphics.getWidth());
table.setHeight(Gdx.graphics.getHeight());
Drawable drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));
table.setBackground(drawable);
table.setColor(tableColor);
return table;
}
代码示例来源:origin: kbz/SIFTrain
table.setHeight(stage.getHeight() * 0.7f);
valid = song.getValid();
Table warningTable = new Table(Assets.menuSkin);
warningTable.setWidth(stage.getWidth() * 0.7f);
warningTable.setHeight(stage.getHeight() * 0.25f);
table.add(warningsLabel).left().fillX().row();
for (String warning : loader.getWarnings()) {
Table errorTable = new Table(Assets.menuSkin);
errorTable.setWidth(stage.getWidth() * 0.7f);
errorTable.setHeight(stage.getHeight() * 0.25f);
for (String error : loader.getErrors()) {
Label errorLabel = new Label(error, Assets.menuSkin, "song_style_result");
Table warningTable = new Table(Assets.menuSkin);
warningTable.setWidth(stage.getWidth() * 0.7f);
warningTable.setHeight(stage.getHeight() * 0.25f);
table.add(warningsLabel).left().fillX().row();
for (String warning : loader.getWarnings()) {
代码示例来源:origin: kbz/SIFTrain
table.setHeight(stage.getHeight() * 0.8f);
table.setX(stage.getWidth() * 0.1f);
table.setY(stage.getHeight() * 0.1f);
代码示例来源:origin: kbz/SIFTrain
table.add(diffListPane).colspan(3).size(stage.getWidth() * 0.87f, stage.getHeight() * 0.23f).padBottom(stage.getHeight() * 0.01f).padTop(stage.getHeight() * 0.01f).row();
table.setWidth(stage.getWidth());
table.setHeight(stage.getHeight());
代码示例来源:origin: kbz/SIFTrain
volumeTable.setHeight(stage.getHeight() * 0.7f);
volumeTable.setWidth(stage.getWidth() * 0.6f);
offsetTable.setHeight(stage.getHeight() * 0.7f);
offsetTable.setWidth(stage.getWidth() * 0.6f);
offsetTable.add(offsetLabel).width(stage.getWidth() * 0.3f).padTop(stage.getHeight() * 0.01f).padBottom(stage.getHeight() * 0.01f).fillX();
otherTable.setHeight(stage.getHeight() * 0.7f);
otherTable.setWidth(stage.getWidth() * 0.6f);
内容来源于网络,如有侵权,请联系作者删除!