private void clear_Click(object sender, EventArgs e) { ClearElements clearElements = new ClearElements(animations, (int)imageNum.Value, "CLEAR EFFECT ANIMATIONS..."); clearElements.ShowDialog(); foreach (E_Animation animation in animations) { animation.Assemble(); } RefreshEffectsEditor(); }
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; } RefreshWorldMap(); }
private void clear_Click(object sender, EventArgs e) { ClearElements clearElements = new ClearElements(animations, (int)animationPacket.Value, "CLEAR SPRITE ANIMATIONS..."); clearElements.ShowDialog(); if (clearElements.DialogResult == DialogResult.Cancel) { return; } foreach (Animation sm in animations) { sm.Assemble(); } RefreshSpritesEditor(); }
private void clear_Click(object sender, EventArgs e) { byte[] oldTileset = Bits.Copy(tileset.Tileset_bytes); // ClearElements clearElements = new ClearElements(null, index, "CLEAR BATTLEFIELD TILESETS..."); clearElements.ShowDialog(); if (clearElements.DialogResult == DialogResult.Cancel) { return; } RefreshBattlefield(); // if (!Bits.Compare(oldTileset, tileset.Tileset_bytes)) { commandStack.Push(new TilesetCommand(tileset, oldTileset, this)); commandStack.Push(1); } }