0
对于libgdx项目,我想在顶部居中并排地接触3个图像,但由于某种原因,中间的一个不居中,他们不会到顶部。他们连接到按钮“回”演员。中心libgdx舞台对象
我想:
Table table = new Table();
table.setFillParent(true);
table.setBackground(new TextureRegionDrawable(new TextureRegion(new Texture("background.png"))));
table.padTop(50);
table.add(characters).top().left();
table.add(items).top();
table.add(upgrades).top().right();
table.row();
table.bottom();
table.add(back).size(back.getWidth(), back.getHeight()).colspan(2).padBottom(70);
table.row();
stage.addActor(table);
如果您的图像有不同的宽度,在电池使用.uniform() –
这将会是一个比较容易回答,如果你可以添加一张图片来说明你想要达到的问题或结果。 – John