Search in sources :

Example 11 with ScreenData

use of eidolons.libgdx.screens.ScreenData in project Eidolons by IDemiurge.

the class ScenarioLauncher method launch.

public static void launch(String typeName) {
    DC_Engine.jarInit();
    DemoLauncher.main(null);
    DC_Engine.mainMenuInit();
    // Eidolons.mainGame.getMetaMaster().preStart();
    master = new ScenarioMetaMaster(typeName);
    if (!Eidolons.initScenario(master)) {
        return;
    }
    ScreenData data = new ScreenData(ScreenType.BATTLE, master.getMissionName());
    // new SceneFactory("Test")
    GuiEventManager.trigger(GuiEventType.SWITCH_SCREEN, data);
    DC_Engine.gameStartInit();
    Eidolons.mainGame.getMetaMaster().getGame().dungeonInit();
    Eidolons.mainGame.getMetaMaster().getGame().battleInit();
    Eidolons.mainGame.getMetaMaster().getGame().start(true);
// DungeonScreen.getInstance().hideLoader();
}
Also used : ScenarioMetaMaster(eidolons.game.battlecraft.logic.meta.scenario.ScenarioMetaMaster) ScreenData(eidolons.libgdx.screens.ScreenData)

Example 12 with ScreenData

use of eidolons.libgdx.screens.ScreenData in project Eidolons by IDemiurge.

the class MainMenuHandler method handle.

public Boolean handle(MAIN_MENU_ITEM item) {
    switch(item) {
        case CRAWL:
        case STANDOFF:
        case SKIRMISH:
            CoreEngine.setMacro(false);
            GuiEventManager.trigger(GuiEventType.SHOW_SELECTION_PANEL, DataManager.getTypesGroup(DC_TYPE.SCENARIOS, StringMaster.getWellFormattedString(item.toString())));
            return null;
        case ADVENTURE:
            CoreEngine.setMacro(true);
            GuiEventManager.trigger(GuiEventType.SWITCH_SCREEN, new ScreenData(ScreenType.MAP, "Mistfall"));
            return null;
        case OPTIONS:
            OptionsMaster.init();
            menu.openOptionsMenu();
            return false;
        case MANUAL:
            // null closes!
            GuiEventManager.trigger(GuiEventType.SHOW_MANUAL_PANEL, "");
            return null;
        case ABOUT:
            break;
        case EXIT:
            Gdx.app.exit();
            break;
    }
    return true;
}
Also used : ScreenData(eidolons.libgdx.screens.ScreenData)

Example 13 with ScreenData

use of eidolons.libgdx.screens.ScreenData in project Eidolons by IDemiurge.

the class IntroTestLauncher method engineInit.

@Override
protected void engineInit() {
    ScreenData data = new ScreenData(ScreenType.BATTLE, "Loading...", factory);
    screenSwitcher(new EventCallbackParam(data));
}
Also used : EventCallbackParam(main.system.EventCallbackParam) ScreenData(eidolons.libgdx.screens.ScreenData)

Aggregations

ScreenData (eidolons.libgdx.screens.ScreenData)13 ScenarioMetaMaster (eidolons.game.battlecraft.logic.meta.scenario.ScenarioMetaMaster)2 DC_Game (eidolons.game.core.game.DC_Game)2 EventCallbackParam (main.system.EventCallbackParam)2 InputEvent (com.badlogic.gdx.scenes.scene2d.InputEvent)1 TextButton (com.badlogic.gdx.scenes.scene2d.ui.TextButton)1 ClickListener (com.badlogic.gdx.scenes.scene2d.utils.ClickListener)1 TutorialMetaMaster (eidolons.game.battlecraft.logic.meta.tutorial.TutorialMetaMaster)1 GameLauncher (eidolons.game.core.launch.GameLauncher)1 SimpleClickListener (eidolons.libgdx.gui.SimpleClickListener)1 List (java.util.List)1 Condition (main.elements.conditions.Condition)1 Conditions (main.elements.conditions.Conditions)1 Ref (main.entity.Ref)1 FileChooser (main.swing.generic.components.editors.FileChooser)1