Exemple #1
0
        private void clear_Click(object sender, EventArgs e)
        {
            ClearElements clearElements = new ClearElements(animations, effect.ImageNum, "CLEAR EFFECT ANIMATIONS...");

            clearElements.ShowDialog();

            // Update and reload
            UpdateAnimationBuffers();
            LoadProperties();
        }
Exemple #2
0
        private void clear_Click(object sender, EventArgs e)
        {
            ClearElements clearElements = new ClearElements(worldMaps, Index, "CLEAR WORLD MAPS...");

            clearElements.ShowDialog();
            if (clearElements.DialogResult == DialogResult.Cancel)
            {
                return;
            }
            WorldMapsForm.LoadProperties();
        }
Exemple #3
0
        private void clear_Click(object sender, EventArgs e)
        {
            var clearElements = new ClearElements(animations, Sprite.ImageNum, "CLEAR SPRITE ANIMATIONS...");

            clearElements.ShowDialog();
            if (clearElements.DialogResult == DialogResult.Cancel)
            {
                return;
            }
            foreach (var animation in animations)
            {
                animation.WriteToBuffer();
            }
            LoadProperties();
        }
Exemple #4
0
        private void clear_Click(object sender, EventArgs e)
        {
            byte[] oldTileset = Bits.Copy(tileset.Tileset_bytes);
            //
            var clearElements = new ClearElements(null, Index, "CLEAR BATTLEFIELD TILESETS...");

            clearElements.ShowDialog();
            if (clearElements.DialogResult == DialogResult.Cancel)
            {
                return;
            }
            LoadProperties();
            //
            if (!Bits.Compare(oldTileset, tileset.Tileset_bytes))
            {
                commandStack.Push(new TilesetEdit(tileset, oldTileset, this));
                commandStack.Push(1);
            }
        }