Fix dialogue sequence assignment

It used to be set by reference instead of copying, which means all dialogues created in a single session would reference the same sequence.
directional-lights
Sven Eberhardt 2016-10-30 21:55:29 -04:00
parent 97c8104ac8
commit aed3f92982
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ public func Definition(def)
// Dialogue EditorProps
if (!def.EditorProps) def.EditorProps = {};
def.EditorProps.dlg_target = { Name="$Target$", EditorHelp="$TargetDesc$", Type="object", Filter="IsClonk", Set="SetDialogueTarget" };
def.EditorProps.user_dialogue = { Name="$Dialogue$", EditorHelp="$DialogueDesc$", Type="enum", OptionKey="Function", Options = [ { Name="$NoDialogue$" }, new UserAction.EvaluatorDefs.sequence { Group=nil } ] };
def.EditorProps.user_dialogue = { Name="$Dialogue$", EditorHelp="$DialogueDesc$", Type="enum", OptionKey="Function", Options = [ { Name="$NoDialogue$" }, new UserAction.EvaluatorDefs.sequence { Group=nil, Value = { Function="sequence", Actions=[] } } ] };
def.EditorProps.user_dialogue_allow_parallel = UserAction.PropParallel;
def.EditorProps.user_dialogue_progress_mode = UserAction.PropProgressMode;
def.EditorProps.dlg_attention = { Name="$Attention$ (!)", EditorHelp="$AttentionDesc$", Type="bool", Set="SetAttention" };