Search in sources :

Example 1 with GuiFactory

use of games.utils.GuiFactory in project Entitas-Java by Rubentxu.

the class GameSceneState method loadResources.

@Override
public void loadResources() {
    this.skinManager = engine.getManager(SMGUIManager.class);
    this.assetsManager = engine.getManager(BaseAssetsManager.class);
    guiFactory = new GuiFactory(assetsManager, skin);
    bodyBuilder = new BodyBuilder();
    this.stage = new Stage();
    stage.clear();
    stage.getViewport().update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), true);
    Gdx.input.setInputProcessor(stage);
    Gdx.app.log("Menu", "LoadResources");
    assetsManager.loadTextureAtlas(SPRITE_ATLAS);
    assetsManager.finishLoading();
}
Also used : Stage(com.badlogic.gdx.scenes.scene2d.Stage) GuiFactory(games.utils.GuiFactory) SMGUIManager(games.manager.SMGUIManager) BaseAssetsManager(com.ilargia.games.entitas.egdx.base.managers.BaseAssetsManager) BodyBuilder(ilargia.egdx.util.BodyBuilder)

Aggregations

Stage (com.badlogic.gdx.scenes.scene2d.Stage)1 BaseAssetsManager (com.ilargia.games.entitas.egdx.base.managers.BaseAssetsManager)1 SMGUIManager (games.manager.SMGUIManager)1 GuiFactory (games.utils.GuiFactory)1 BodyBuilder (ilargia.egdx.util.BodyBuilder)1