private void buttonStyle_Click(object sender, EventArgs e) { using (LevelLocDlg dlg = new LevelLocDlg()) { dlg.Text = "Load UI Style ..."; if (dlg.ShowDialog(this) == DialogResult.OK) { RelocationStytlePath(dlg.ResourceLocation); } } }
private void loadAnimSetToolStripMenuItem_Click(object sender, EventArgs e) { using (LevelLocDlg dlg = new LevelLocDlg()) { dlg.Text = "Load AnimSet ..."; dlg.SetResourceLocation(NLevelEditorEngine.Instance.LevelLoc); if (dlg.ShowDialog(this) == DialogResult.OK) { using (NexusEngineExtension.NWaitCursor wc = new NexusEngineExtension.NWaitCursor(this)) { NResourceLoc loc = dlg.ResourceLocation; LoadAnimSet(loc.pkgName, loc.fileName); } } } }
private void toolStripMenuExportLevel_Click(object sender, EventArgs e) { using (LevelLocDlg dlg = new LevelLocDlg()) { dlg.Text = "Export Level ..."; dlg.SetResourceLocation(NLevelEditorEngine.Instance.LevelLoc); if (dlg.ShowDialog(this) == DialogResult.OK) { NResourceLoc loc = dlg.ResourceLocation; using (NexusEngineExtension.NWaitCursor wc = new NexusEngineExtension.NWaitCursor(this)) { NLevelEditorEngine.Instance.ExportMainLevel(loc); this.toolStripStatusLableNote.Text = "Level Export to " + loc.ToString(); } } } }
private void saveCurrentLevelToolStripMenuItem_Click(object sender, EventArgs e) { using (LevelLocDlg dlg = new LevelLocDlg()) { dlg.Text = "Save Level ..."; dlg.SetResourceLocation(NLevelEditorEngine.Instance.LevelLoc); if (dlg.ShowDialog(this) == DialogResult.OK) { NResourceLoc loc = dlg.ResourceLocation; using (NexusEngineExtension.NWaitCursor wc = new NexusEngineExtension.NWaitCursor(this)) { NLevelEditorEngine.Instance.SaveMainLevel(loc); this.toolStripStatusLableNote.Text = "Level saved to " + loc.ToString(); m_RecentFile.Add(loc); m_RecentFile.Save(); } } } }