Esempio n. 1
0
        public void AddNewDialogue()
        {
            Dirty = true;

            HashSet <string> dlgNames = new HashSet <string>();

            foreach (var dlg in DlgModel.DlgItems)
            {
                dlgNames.Add(dlg.Name);
            }

            string baseName = "Dialogue ";
            int    curIndex = 1;

            while (true)
            {
                string name = baseName + curIndex;
                if (!dlgNames.Contains(name))
                {
                    DlgModel.Add(name);
                    break;
                }
                ++curIndex;
            }
        }
Esempio n. 2
0
 public void RemoveItem(string itemName)
 {
     DlgModel.Remove(itemName);
 }
Esempio n. 3
0
 public void OpenDialogue(string dialogueName)
 {
     DlgModel.OpenDialogue(dialogueName);
 }
Esempio n. 4
0
 /// <summary>
 /// Create a node and add it to the view-model.
 /// </summary>
 public NodeViewModel CreateNode(string name, Point nodeLocation)
 {
     return(DlgModel.CreateNode(name, nodeLocation));
 }