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;
}
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);
});
}
Aggregations