Ejemplo n.º 1
0
 public override void DisplayResponse(Response response, int ID, bool possible)
 {
     if (possible)
     {
         string responseText = MarkupToken.EvaluateTokens(MarkupParser.Dialogue.Parse(response.Text).Value, uiManager.manager);
         dialogueBox.AddButton(responseText, () => uiManager.manager.ResponseSelected(ID));
         ++responseCount;
     }
 }
Ejemplo n.º 2
0
        public override void DisplayDialogueEntry(DialogueEntry entry)
        {
            DialogueActor actor = uiManager.manager.GetCurrentActor();

            dialogueBox.SetTitle(actor.Name);
            dialogueBox.SetPortrait(actor.Portrait);
            string dialogueText = MarkupToken.EvaluateTokens(MarkupParser.Dialogue.Parse(entry.Text).Value, uiManager.manager);

            dialogueBox.SetDialogue(dialogueText);
            uiManager.manager.cutsceneManager.DoCutsceneEvents(entry.cutsceneEvents);
        }