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

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

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

Table.setWidth介绍

暂无

代码示例

代码示例来源: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: langurmonkey/gaiasky

guiLayout.setWidth(200 * GlobalConf.SCALE_FACTOR);

代码示例来源:origin: kbz/SIFTrain

table.setY(stage.getHeight() * 0.15f);
table.setWidth(stage.getWidth() * 0.7f);
table.setHeight(stage.getHeight() * 0.7f);
valid = song.getValid();
    warnings = true;
    Table warningTable = new Table(Assets.menuSkin);
    warningTable.setWidth(stage.getWidth() * 0.7f);
    warningTable.setHeight(stage.getHeight() * 0.25f);
    table.add(warningsLabel).left().fillX().row();
  table.add(errorLabel).left().fillX().colspan(2).row();
  Table errorTable = new Table(Assets.menuSkin);
  errorTable.setWidth(stage.getWidth() * 0.7f);
  errorTable.setHeight(stage.getHeight() * 0.25f);
  for (String error : loader.getErrors()) {
    warningTable.setWidth(stage.getWidth() * 0.7f);
    warningTable.setHeight(stage.getHeight() * 0.25f);
    table.add(warningsLabel).left().fillX().row();

代码示例来源:origin: kbz/SIFTrain

playbackRateSlider.addListener(this);
table.setWidth(stage.getWidth() * 0.8f);
table.setHeight(stage.getHeight() * 0.8f);
table.setX(stage.getWidth() * 0.1f);

代码示例来源:origin: dingjibang/GDX-RPG

out.setWidth(Game.width());

代码示例来源:origin: kbz/SIFTrain

table.setWidth(stage.getWidth());
table.setHeight(stage.getHeight());

代码示例来源:origin: kbz/SIFTrain

volumeTable.setWidth(stage.getWidth() * 0.6f);
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();
offsetTable.add().width(stage.getWidth() * 0.20f);
otherTable.setWidth(stage.getWidth() * 0.6f);

相关文章

微信公众号

最新文章

更多