Example #1
0
 public DialogDataNode Copy(DialogDataEditor dialog)
 {
     Conditions = dialog.Conditions;
     Message    = dialog.Message;
     Emotion    = dialog.Emotion;
     Reaction   = dialog.Reaction;
     Trigger    = dialog.Trigger;
     return(this);
 }
Example #2
0
        protected void EditDialogNode(TreeNode node)
        {
            DialogDataEditor dialog = new DialogDataEditor();

            dialog.SetDialogData(GetData(node));
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                DialogDataNode data = GetData(node).Copy(dialog);
                node.Text = string.Format("[on {0}] - \"{1}\" (if {2})",
                                          data.Trigger, data.Message,
                                          string.Join(" and ", data.Conditions.ToArray()));
            }
        }