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

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

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

Table.setTransform介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

  1. /** Causes the contents to be clipped if they exceed the table actor's bounds. Enabling clipping will set
  2. * {@link #setTransform(boolean)} to true. */
  3. public void setClip (boolean enabled) {
  4. clip = enabled;
  5. setTransform(enabled);
  6. invalidate();
  7. }

代码示例来源:origin: libgdx/libgdx

  1. /** Causes the contents to be clipped if they exceed the table actor's bounds. Enabling clipping will set
  2. * {@link #setTransform(boolean)} to true. */
  3. public void setClip (boolean enabled) {
  4. clip = enabled;
  5. setTransform(enabled);
  6. invalidate();
  7. }

代码示例来源:origin: libgdx/libgdx

  1. /** Creates a table with a skin, which enables the {@link #add(CharSequence)} and {@link #add(CharSequence, String)} methods to
  2. * be used. */
  3. public Table (Skin skin) {
  4. this.skin = skin;
  5. cellDefaults = obtainCell();
  6. setTransform(false);
  7. setTouchable(Touchable.childrenOnly);
  8. }

代码示例来源:origin: libgdx/libgdx

  1. /** Creates a table with a skin, which enables the {@link #add(CharSequence)} and {@link #add(CharSequence, String)} methods to
  2. * be used. */
  3. public Table (Skin skin) {
  4. this.skin = skin;
  5. cellDefaults = obtainCell();
  6. setTransform(false);
  7. setTouchable(Touchable.childrenOnly);
  8. }

代码示例来源:origin: libgdx/libgdx

  1. table.setTransform(true);
  2. table.setPosition(100, 100);
  3. table.setOrigin(0, 0);
  4. table2.setTransform(true);
  5. table2.setScaleX(1.5f);
  6. table2.setOrigin(table2.getPrefWidth() / 2, table2.getPrefHeight() / 2);

代码示例来源:origin: libgdx/libgdx

  1. private void setupUI () {
  2. ui = new Stage(new ExtendViewport(640, 480));
  3. Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"));
  4. skipCleanup = new CheckBox("Skip blend function clean-up", skin);
  5. skipCleanup.addListener(listener);
  6. logLabel = new Label("", skin.get(LabelStyle.class));
  7. clearEmitters = new TextButton("Clear screen", skin);
  8. clearEmitters.addListener(listener);
  9. scaleEffects = new TextButton("Scale existing effects", skin);
  10. scaleEffects.addListener(listener);
  11. Table table = new Table();
  12. table.setTransform(false);
  13. table.setFillParent(true);
  14. table.defaults().padTop(5).left();
  15. table.top().left().padLeft(5);
  16. table.add(skipCleanup).colspan(2).row();
  17. table.add(clearEmitters).spaceRight(10);
  18. table.add(scaleEffects).row();
  19. table.add(logLabel).colspan(2);
  20. ui.addActor(table);
  21. }

代码示例来源:origin: libgdx/libgdx

  1. root.setBackground(skin.getDrawable("default-pane"));
  2. root.defaults().space(6);
  3. root.setTransform(true);
  4. root.rotateBy(10);
  5. root.setScale(1.3f, 1);

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. /** Causes the contents to be clipped if they exceed the table actor's bounds. Enabling clipping will set
  2. * {@link #setTransform(boolean)} to true. */
  3. public void setClip (boolean enabled) {
  4. clip = enabled;
  5. setTransform(enabled);
  6. invalidate();
  7. }

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. /** Creates a table with a skin, which enables the {@link #add(CharSequence)} and {@link #add(CharSequence, String)} methods to
  2. * be used. */
  3. public Table (Skin skin) {
  4. this.skin = skin;
  5. cellDefaults = obtainCell();
  6. setTransform(false);
  7. setTouchable(Touchable.childrenOnly);
  8. }

代码示例来源:origin: 121077313/cocostudio-ui-libgdx

  1. table.setTransform(true);

代码示例来源:origin: jsjolund/GdxDemo3D

  1. bottomRightTable.add(characterController);
  2. bottomRightTable.add(speedController);
  3. bottomRightTable.setTransform(true);
  4. bottomRightTable.setOrigin(bottomRightTable.getPrefWidth() * scale, bottomRightTable.getPrefHeight() * scale);
  5. bottomRightTable.setScale(scale);

相关文章