Example #1
0
 private void new_world()
 {
     frmWorld wrl = new frmWorld();
     wrl.wrld.height = 100;
     wrl.wrld.width = 100;
     wrl.MdiParent = this;
     wrl.Show();
 }
Example #2
0
 private void open_world()
 {
     OpenFileDialog ofd = new OpenFileDialog();
     ofd.Filter = "Lua World File|*.lua";
     if (ofd.ShowDialog() == DialogResult.OK)
     {
         frmWorld editor = new frmWorld();
         editor.wrld.load(ofd.FileName);
         editor.MdiParent = this;
         //editor..Width = editor.wrld.width;
         //editor.pipicWorldcWorld.Height = editor.wrld.height;
         editor.Show();
         editor.renderworld();
     }
 }