Exemplo n.º 1
0
 private void toolStripButtonSaveProject_Click(object sender, EventArgs e)
 {
     EditorSceneUtils.Save();
     ProjectLoader.Save();
     Logger.Instance.Clear();
     Logger.Instance.Append("Saved " + DateTime.Now.ToString());
     UpdateFormTitle();
 }
Exemplo n.º 2
0
        private void MainWindow_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (SceneManagement.ActiveScene.UnsavedChanges)
            {
                DialogResult result = MessageBox.Show("There are unsaved changes in the scene, do you want to save before closing?", "Unsaved Scene Changes", MessageBoxButtons.YesNo);
                if (result == DialogResult.Yes)
                {
                    EditorSceneUtils.Save();
                }
            }

            if (ProjectManager.Instance.IsDirty)
            {
                DialogResult result = MessageBox.Show("There are unsaved changes in the project, do you want to save before closing?", "Unsaved Project Changes", MessageBoxButtons.YesNo);
                if (result == DialogResult.Yes)
                {
                    ProjectLoader.Save();
                }
            }
        }
Exemplo n.º 3
0
 private void saveSceneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditorSceneUtils.Save();
 }
Exemplo n.º 4
0
 private void toolStripButtonOpenScene_Click(object sender, EventArgs e)
 {
     EditorSceneUtils.Open();
 }
Exemplo n.º 5
0
 private void toolStripButtonSaveProject_Click(object sender, EventArgs e)
 {
     EditorSceneUtils.Save();
     ProjectLoader.Save();
 }