public static Dictionary <int, DialogueEditorPhaseType> getPhases() { Dictionary <int, DialogueEditorPhaseType> phases = new Dictionary <int, DialogueEditorPhaseType>(); // Text Phase DialogueEditorPhaseType phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.TextPhase, "Text", "A simple text page with one out-path.", getDarkIcon("textPhase"), getLightIcon("textPhase") ); phases.Add((int)DialogueEditorPhaseTypes.TextPhase, phase); // Branched Phase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.BranchedTextPhase, "Branched Text", "A text page with multiple, selectable out-paths.", getDarkIcon("branchedTextPhase"), getLightIcon("branchedTextPhase") ); phases.Add((int)DialogueEditorPhaseTypes.BranchedTextPhase, phase); /* * // Async Phase * phase = new DialogueEditorPhaseType( * DialogueEditorPhaseTypes.AsyncPhase, * "Asynchronous", * "Run two branches at once.", * getIcon("asyncPhase") * ); * phases.Add((int)DialogueEditorPhaseTypes.AsyncPhase, phase); */ // Wait Phase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.WaitPhase, "Wait", "Wait X seconds before progressing.", getDarkIcon("waitPhase"), getLightIcon("waitPhase") ); phases.Add((int)DialogueEditorPhaseTypes.WaitPhase, phase); // SetVariablePhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.SetVariablePhase, "Set Variable", "Set a local or global variable.", getDarkIcon("setVariablePhase"), getLightIcon("setVariablePhase") ); phases.Add((int)DialogueEditorPhaseTypes.SetVariablePhase, phase); // ConditionalPhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.ConditionalPhase, "Condition", "Moves to an out-path based on a condition.", getDarkIcon("conditionalPhase"), getLightIcon("conditionalPhase") ); phases.Add((int)DialogueEditorPhaseTypes.ConditionalPhase, phase); // SendMessagePhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.SendMessagePhase, "Message Event", "Dispatch an event which can be easily listened to and handled.", getDarkIcon("sendMessagePhase"), getLightIcon("sendMessagePhase") ); phases.Add((int)DialogueEditorPhaseTypes.SendMessagePhase, phase); // EndPhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.EndPhase, "End", "Ends the dialogue and calls the dialogue's callback.", getDarkIcon("endPhase"), getLightIcon("endPhase") ); phases.Add((int)DialogueEditorPhaseTypes.EndPhase, phase); return(phases); }
public static Dictionary<int, DialogueEditorPhaseType> getPhases() { Dictionary<int, DialogueEditorPhaseType> phases = new Dictionary<int, DialogueEditorPhaseType>(); // Text Phase DialogueEditorPhaseType phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.TextPhase, "Text", "A simple text page with one out-path.", getDarkIcon("textPhase"), getLightIcon("textPhase") ); phases.Add((int)DialogueEditorPhaseTypes.TextPhase, phase); // Branched Phase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.BranchedTextPhase, "Branched Text", "A text page with multiple, selectable out-paths.", getDarkIcon("branchedTextPhase"), getLightIcon("branchedTextPhase") ); phases.Add((int)DialogueEditorPhaseTypes.BranchedTextPhase, phase); /* // Async Phase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.AsyncPhase, "Asynchronous", "Run two branches at once.", getIcon("asyncPhase") ); phases.Add((int)DialogueEditorPhaseTypes.AsyncPhase, phase); */ // Wait Phase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.WaitPhase, "Wait", "Wait X seconds before progressing.", getDarkIcon("waitPhase"), getLightIcon("waitPhase") ); phases.Add((int)DialogueEditorPhaseTypes.WaitPhase, phase); // SetVariablePhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.SetVariablePhase, "Set Variable", "Set a local or global variable.", getDarkIcon("setVariablePhase"), getLightIcon("setVariablePhase") ); phases.Add((int)DialogueEditorPhaseTypes.SetVariablePhase, phase); // ConditionalPhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.ConditionalPhase, "Condition", "Moves to an out-path based on a condition.", getDarkIcon("conditionalPhase"), getLightIcon("conditionalPhase") ); phases.Add((int)DialogueEditorPhaseTypes.ConditionalPhase, phase); // SendMessagePhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.SendMessagePhase, "Message Event", "Dispatch an event which can be easily listened to and handled.", getDarkIcon("sendMessagePhase"), getLightIcon("sendMessagePhase") ); phases.Add((int)DialogueEditorPhaseTypes.SendMessagePhase, phase); // EndPhase phase = new DialogueEditorPhaseType( DialogueEditorPhaseTypes.EndPhase, "End", "Ends the dialogue and calls the dialogue's callback.", getDarkIcon("endPhase"), getLightIcon("endPhase") ); phases.Add((int)DialogueEditorPhaseTypes.EndPhase, phase); return phases; }