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

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

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

  1. public static Table buildTable(Color tableColor, Color pixmapColor){
  2. Pixmap pixmap = new Pixmap(1, 1, Format.RGBA8888);
  3. pixmap.setColor(pixmapColor);
  4. pixmap.fill();
  5. Table table = new Table();
  6. table.setWidth(Gdx.graphics.getWidth());
  7. table.setHeight(Gdx.graphics.getHeight());
  8. Drawable drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));
  9. table.setBackground(drawable);
  10. table.setColor(tableColor);
  11. return table;
  12. }

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

  1. guiLayout.setWidth(200 * GlobalConf.SCALE_FACTOR);

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

  1. table.setY(stage.getHeight() * 0.15f);
  2. table.setWidth(stage.getWidth() * 0.7f);
  3. table.setHeight(stage.getHeight() * 0.7f);
  4. valid = song.getValid();
  5. warnings = true;
  6. Table warningTable = new Table(Assets.menuSkin);
  7. warningTable.setWidth(stage.getWidth() * 0.7f);
  8. warningTable.setHeight(stage.getHeight() * 0.25f);
  9. table.add(warningsLabel).left().fillX().row();
  10. table.add(errorLabel).left().fillX().colspan(2).row();
  11. Table errorTable = new Table(Assets.menuSkin);
  12. errorTable.setWidth(stage.getWidth() * 0.7f);
  13. errorTable.setHeight(stage.getHeight() * 0.25f);
  14. for (String error : loader.getErrors()) {
  15. warningTable.setWidth(stage.getWidth() * 0.7f);
  16. warningTable.setHeight(stage.getHeight() * 0.25f);
  17. table.add(warningsLabel).left().fillX().row();

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

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

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

  1. out.setWidth(Game.width());

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

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

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

  1. volumeTable.setWidth(stage.getWidth() * 0.6f);
  2. offsetTable.setWidth(stage.getWidth() * 0.6f);
  3. offsetTable.add(offsetLabel).width(stage.getWidth() * 0.3f).padTop(stage.getHeight() * 0.01f).padBottom(stage.getHeight() * 0.01f).fillX();
  4. offsetTable.add().width(stage.getWidth() * 0.20f);
  5. otherTable.setWidth(stage.getWidth() * 0.6f);

相关文章