Exemplo n.º 1
0
 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);
         }
     }
 }
Exemplo n.º 2
0
 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);
             }
         }
     }
 }
Exemplo n.º 3
0
 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();
             }
         }
     }
 }
Exemplo n.º 4
0
 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();
             }
         }
     }
 }