Example #1
0
        private void mSaveAs_Click(object sender, EventArgs e)
        {
            dSave.ShowDialog();

            if (dSave.FileName.Length == 0)
            {
                return;
            }

            MarioEditorXML.Save_To_XML(dSave.FileName, Objects);
        }
Example #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Objects = new List <LevelEditorObject>();

            MainImage = ImageGenerator.GetImage(ObjectType.OT_BG_Block);
            Invalidate();
            LoadEditorObjects();

            Objects = MarioEditorXML.Load_From_XML("lev1.xml");
            SetListIndexToObjects();
        }
Example #3
0
        private void mOpen_Click(object sender, EventArgs e)
        {
            dOpen.ShowDialog();

            if (dOpen.FileName.Length == 0)
            {
                return;
            }

            FileName = dOpen.FileName;
            Objects  = MarioEditorXML.Load_From_XML(dOpen.FileName);
            SetListIndexToObjects();
        }
Example #4
0
 private void mSave_Click(object sender, EventArgs e)
 {
     MarioEditorXML.Save_To_XML(FileName, Objects);
 }