Search in sources :

Example 1 with DialogueHandler

use of eidolons.game.battlecraft.logic.meta.scenario.dialogue.DialogueHandler in project Eidolons by IDemiurge.

the class CombatScriptExecutor method doDialogue.

private boolean doDialogue(Ref ref, String[] args) {
    GameDialogue dialogue = getGame().getMetaMaster().getDialogueFactory().getDialogue(args[0]);
    List<DialogScenario> list = SceneFactory.getScenes(dialogue);
    GuiEventManager.trigger(GuiEventType.DIALOG_SHOW, new DialogueHandler(dialogue, getGame(), list));
    return true;
}
Also used : GameDialogue(eidolons.game.battlecraft.logic.meta.scenario.dialogue.GameDialogue) DialogScenario(eidolons.libgdx.DialogScenario) DialogueHandler(eidolons.game.battlecraft.logic.meta.scenario.dialogue.DialogueHandler)

Example 2 with DialogueHandler

use of eidolons.game.battlecraft.logic.meta.scenario.dialogue.DialogueHandler in project Eidolons by IDemiurge.

the class GameScreen method initDialogue.

protected void initDialogue() {
    GuiEventManager.bind(DIALOG_SHOW, obj -> {
        DialogueHandler handler = (DialogueHandler) obj.get();
        final List<DialogScenario> list = handler.getList();
        if (dialogsStage == null) {
            dialogsStage = new ChainedStage(viewPort, getBatch(), list);
            updateInputController();
        } else {
            dialogsStage.play(list);
        }
        dialogsStage.setDialogueHandler(handler);
    });
}
Also used : ChainedStage(eidolons.libgdx.stage.ChainedStage) DialogScenario(eidolons.libgdx.DialogScenario) DialogueHandler(eidolons.game.battlecraft.logic.meta.scenario.dialogue.DialogueHandler)

Aggregations

DialogueHandler (eidolons.game.battlecraft.logic.meta.scenario.dialogue.DialogueHandler)2 DialogScenario (eidolons.libgdx.DialogScenario)2 GameDialogue (eidolons.game.battlecraft.logic.meta.scenario.dialogue.GameDialogue)1 ChainedStage (eidolons.libgdx.stage.ChainedStage)1