Ejemplo n.º 1
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (label2.Text.ToLower().Contains("maps"))
     {
         MapEditor.MapEditor editor = new MapEditor.MapEditor(APP_Loaded_project_Path + "\\maps\\" + listBox1.Items[listBox1.SelectedIndex] + ".map");
         editor.Show();
     }
 }
Ejemplo n.º 2
0
 private void newWindowToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MapEditor mp = new MapEditor();
     mp.Show();
     this.Close();
 }
Ejemplo n.º 3
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (label2.Text.ToLower().Contains("maps"))
     {
         MapEditor.MapSettings sett = new MapEditor.MapSettings("","");
         sett.label2.Visible = false;
         sett.textBox2.Visible = false;
         sett.ShowDialog();
         MapEditor.MapEditor editor = new MapEditor.MapEditor();
         OpenFileDialog opn = new OpenFileDialog();
         opn.Title = "Load a tileset";
         if (opn.ShowDialog() == DialogResult.OK)
         {
             editor.load_tiles(opn.FileName);
             editor.groupBox1.Visible = true;
             editor.Map_name = sett.RET[0];
         }
         else return;
         editor.Show();
     }
 }