本文整理了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
暂无
代码示例来源:origin: libgdx/libgdx
/** Causes the contents to be clipped if they exceed the table actor's bounds. Enabling clipping will set
* {@link #setTransform(boolean)} to true. */
public void setClip (boolean enabled) {
clip = enabled;
setTransform(enabled);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** Causes the contents to be clipped if they exceed the table actor's bounds. Enabling clipping will set
* {@link #setTransform(boolean)} to true. */
public void setClip (boolean enabled) {
clip = enabled;
setTransform(enabled);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** Creates a table with a skin, which enables the {@link #add(CharSequence)} and {@link #add(CharSequence, String)} methods to
* be used. */
public Table (Skin skin) {
this.skin = skin;
cellDefaults = obtainCell();
setTransform(false);
setTouchable(Touchable.childrenOnly);
}
代码示例来源:origin: libgdx/libgdx
/** Creates a table with a skin, which enables the {@link #add(CharSequence)} and {@link #add(CharSequence, String)} methods to
* be used. */
public Table (Skin skin) {
this.skin = skin;
cellDefaults = obtainCell();
setTransform(false);
setTouchable(Touchable.childrenOnly);
}
代码示例来源:origin: libgdx/libgdx
table.setTransform(true);
table.setPosition(100, 100);
table.setOrigin(0, 0);
table2.setTransform(true);
table2.setScaleX(1.5f);
table2.setOrigin(table2.getPrefWidth() / 2, table2.getPrefHeight() / 2);
代码示例来源:origin: libgdx/libgdx
private void setupUI () {
ui = new Stage(new ExtendViewport(640, 480));
Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"));
skipCleanup = new CheckBox("Skip blend function clean-up", skin);
skipCleanup.addListener(listener);
logLabel = new Label("", skin.get(LabelStyle.class));
clearEmitters = new TextButton("Clear screen", skin);
clearEmitters.addListener(listener);
scaleEffects = new TextButton("Scale existing effects", skin);
scaleEffects.addListener(listener);
Table table = new Table();
table.setTransform(false);
table.setFillParent(true);
table.defaults().padTop(5).left();
table.top().left().padLeft(5);
table.add(skipCleanup).colspan(2).row();
table.add(clearEmitters).spaceRight(10);
table.add(scaleEffects).row();
table.add(logLabel).colspan(2);
ui.addActor(table);
}
代码示例来源:origin: libgdx/libgdx
root.setBackground(skin.getDrawable("default-pane"));
root.defaults().space(6);
root.setTransform(true);
root.rotateBy(10);
root.setScale(1.3f, 1);
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Causes the contents to be clipped if they exceed the table actor's bounds. Enabling clipping will set
* {@link #setTransform(boolean)} to true. */
public void setClip (boolean enabled) {
clip = enabled;
setTransform(enabled);
invalidate();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Creates a table with a skin, which enables the {@link #add(CharSequence)} and {@link #add(CharSequence, String)} methods to
* be used. */
public Table (Skin skin) {
this.skin = skin;
cellDefaults = obtainCell();
setTransform(false);
setTouchable(Touchable.childrenOnly);
}
代码示例来源:origin: 121077313/cocostudio-ui-libgdx
table.setTransform(true);
代码示例来源:origin: jsjolund/GdxDemo3D
bottomRightTable.add(characterController);
bottomRightTable.add(speedController);
bottomRightTable.setTransform(true);
bottomRightTable.setOrigin(bottomRightTable.getPrefWidth() * scale, bottomRightTable.getPrefHeight() * scale);
bottomRightTable.setScale(scale);
内容来源于网络,如有侵权,请联系作者删除!