private void saveNewEncounterNodeDialog_FileOk(object sender, CancelEventArgs e)
{
string filePath = saveNewEncounterNodeDialog.FileName;
if (filePath == null)
{
return;
}
filePath = JsonHelper.NormalizeSystemPath(filePath);
GameMasterNode existingNode = GameMasterDataManager.GetInstance().GetGameMasterNode(filePath);
if (existingNode != null)
{
MessageBox.Show("Cannot override an existing node. Either edit that node or create a new name.");
return;
}
GameMasterDataManager.GetInstance().AddNewGenericScriptNode(this, mSelectedNewScriptNode, filePath);
}