public DialogueOptions AddOptions(string name) { DialogueOptions options = new DialogueOptions(name); optionsEntries.Add(options); return(options); }
private DialogueOptions AddOptions() { DialogueOptions options = new DialogueOptions(); optionsEntries.Add(options); return(options); }
private NodeBase CreateWindow(NodeBase.Type type) { NodeBase window = new NodeBase(type, this); windows.Add(window); if (type == NodeBase.Type.Speech) { DialogueSpeech speech = dialogue.AddSpeech("New Speech"); window.speech = speech; } else if (type == NodeBase.Type.Option) { DialogueOptions option = dialogue.AddOptions("New Option"); window.options = option; } return(window); }
private void CreateTemplateDialogue() { DialogueSpeech speech01 = AddSpeech("Intro", "Well, Hello there!"); DialogueSpeech speech02 = AddSpeech("Ending", "Goodbye!"); DialogueSpeech speech03 = AddSpeech("Turns N***a", "Haha, SUP NIBBA"); DialogueSpeech speech04 = AddSpeech("Triggered", "Wow.. Rude"); DialogueOptions options01 = AddOptions("Intro Response"); options01.AddOption("Yeah, hey", speech02); options01.AddOption("Sup dawg", speech03); options01.AddOption("I ain't got time for you!", speech04); speech01.target = options01; speech02.target = end; speech03.target = end; speech04.target = end; start.target = speech01; end.target = start; }
public virtual void OnOptions(DialogueOptions options) { }