UiStage.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:ExamensArbeteTD 作者:
public UiStage(){
     OrthographicCamera _uiCamera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
     this.setViewport(new ScreenViewport(_uiCamera));
     // create skin


     // root table
     _rootTable = createRootTable();
     createErrorMessagePanel();

     uiPanel = new UIPanel(Assets._skin);

     _rootTable.add(uiPanel)
             .align(Align.center)
             .fill(true , true)
             .minWidth(uiPanel.getLeftSection().getPrefWidth() + uiPanel.getMidSection().getPrefWidth() + uiPanel.getRightSection().getPrefWidth() + 50);
     // align stuff
     _rootTable.align(Align.bottom);
     // add root table to stage
     this.addActor(_rootTable);
     _pauseWindow = new PauseWindow("Pause", Assets._skin);
     _pauseWindow.setSize(Gdx.graphics.getWidth() , Gdx.graphics.getHeight());
     this.addActor(_pauseWindow);
     this.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号