level 1
609624725
楼主
试了,setsize();setHeight();setWidth()结果image大小都改不了。
[现在能改大小的似乎只有spritebatch的draw()函数]
代码如下:
startGameBtn = new ImageButton(new TextureRegionDrawable(new TextureRegion(Assets.atlas.findRegion(IConstant.GAME_BTN_START, 1))),new TextureRegionDrawable(new TextureRegion(Assets.atlas.findRegion(IConstant.GAME_BTN_START, 2))));
startGameBtn.setHeight(500);//没作用
startGameBtn.setSize(300, 300);//没作用
2014年09月13日 12点09分
1
[现在能改大小的似乎只有spritebatch的draw()函数]
代码如下:
startGameBtn = new ImageButton(new TextureRegionDrawable(new TextureRegion(Assets.atlas.findRegion(IConstant.GAME_BTN_START, 1))),new TextureRegionDrawable(new TextureRegion(Assets.atlas.findRegion(IConstant.GAME_BTN_START, 2))));
startGameBtn.setHeight(500);//没作用
startGameBtn.setSize(300, 300);//没作用