Exemplo n.º 1
0
        private void resizeTilesetToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (TileSize form = new TileSize())
            {
                form.ShowDialog();

                if (level.Tileset.Tiles.Length == form.X && level.Tileset.Tiles[0].Length == form.Y)
                {
                    return;
                }

                GenerateTiles(form.X, form.Y);
            }
        }
        private void resizeTilesetToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (TileSize form = new TileSize())
            {
                form.ShowDialog();

                if (level.Tileset.Tiles.Length == form.X && level.Tileset.Tiles[0].Length == form.Y)
                    return;

                GenerateTiles(form.X, form.Y);
            }
        }