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

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

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

Table.setHeight介绍

暂无

代码示例

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

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

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

  1. table.setHeight(stage.getHeight() * 0.8f);
  2. table.setX(stage.getWidth() * 0.1f);
  3. table.setY(stage.getHeight() * 0.1f);

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

  1. 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();
  2. table.setWidth(stage.getWidth());
  3. table.setHeight(stage.getHeight());

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

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

相关文章