本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.ui.Stack.setSize方法的典型用法代码示例。如果您正苦于以下问题:Java Stack.setSize方法的具体用法?Java Stack.setSize怎么用?Java Stack.setSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.scenes.scene2d.ui.Stack
的用法示例。
在下文中一共展示了Stack.setSize方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import com.badlogic.gdx.scenes.scene2d.ui.Stack; //导入方法依赖的package包/类
public void create () {
lastUpdateTime = 0;
testStack = new Stack();
container.stage.getRoot().addActorAt(0, testStack);
testStack.setSize(container.stageWidth, container.stageHeight);
testStack.add(testTable = new Table() {
@Override
public void act (float delta) {
float time = GdxAI.getTimepiece().getTime();
if (lastUpdateTime != time) {
lastUpdateTime = time;
super.act(GdxAI.getTimepiece().getDeltaTime());
}
}
});
testStack.layout();
}
示例2: create
import com.badlogic.gdx.scenes.scene2d.ui.Stack; //导入方法依赖的package包/类
@Override
public void create () {
lastUpdateTime = 0;
testStack = new Stack();
container.stage.getRoot().addActorAt(0, testStack);
testStack.setSize(container.stageWidth, container.stageHeight);
testStack.add(testTable = new Table() {
@Override
public void act (float delta) {
float time = GdxAI.getTimepiece().getTime();
if (lastUpdateTime != time) {
lastUpdateTime = time;
super.act(GdxAI.getTimepiece().getDeltaTime());
}
}
});
testStack.layout();
}
示例3: create
import com.badlogic.gdx.scenes.scene2d.ui.Stack; //导入方法依赖的package包/类
@Override
public void create () {
Gdx.gl.glClearColor(.3f, .3f, .3f, 1);
skin = new Skin(Gdx.files.internal("data/uiskin.json"));
// Enable color markup
BitmapFont font = skin.get("default-font", BitmapFont.class);
font.getData().markupEnabled = true;
stage = new Stage();
stage.setDebugAll(DEBUG_STAGE);
stageWidth = stage.getWidth();
stageHeight = stage.getHeight();
Gdx.input.setInputProcessor(new InputMultiplexer(stage));
Stack stack = new Stack();
stage.addActor(stack);
stack.setSize(stageWidth, stageHeight);
testsTable = new Table();
stack.add(testsTable);
// Create behavior selection window
List<String> testList = createTestList();
algorithmSelectionWindow = addBehaviorSelectionWindow("Path Finder Tests", testList, 0, -1);
// Set selected test
changeTest(0);
stage.addActor(new FpsLabel("FPS: ", skin));
}