Example #1
0
        private void saveButton_Click(object sender, EventArgs e)
        {
            SpecialStage newStage = new SpecialStage();
            newStage.height = (int)heightUpDown.Value;
            newStage.tileMap = currentMap;
            newStage.objects = Main.currentFile.specialStages[stageSelectList.SelectedIndex].objects;
            Main.currentFile.specialStages[stageSelectList.SelectedIndex] = newStage;

            statusBarLabel.Text = "Saved tilemap";
        }
Example #2
0
        void populateObjectList(SpecialStage stage)
        {
            List<string> enemies = new List<string>();
            foreach (StoredSpecial sS in stage.objects)
                enemies.Add(string.Concat("X: ", sS.x.ToString(), " Y: ", sS.y.ToString()));
            objectListBox.DataSource = enemies;

            if (enemies.Count == 0)
                enemyOptionsGroup.Enabled = false;
            ;
        }