예제 #1
0
 public void CloseEditors()
 {
     if (paletteEditor != null)
     {
         paletteEditor.Close();
         paletteEditor.Dispose();
     }
     if (graphicEditor != null)
     {
         graphicEditor.Close();
         graphicEditor.Dispose();
     }
     if (spritePaletteEditor != null)
     {
         spritePaletteEditor.Close();
         spritePaletteEditor.Dispose();
     }
     if (spriteGraphicEditor != null)
     {
         spriteGraphicEditor.Close();
         spriteGraphicEditor.Dispose();
     }
     tilesetEditor.Close();
     tilesetEditor.Dispose();
 }
예제 #2
0
 public void CloseEditors()
 {
     if (spritePaletteEditor.Visible)
     {
         spritePaletteEditor.Close();
     }
     if (spriteGraphicEditor.Visible)
     {
         spriteGraphicEditor.Close();
     }
     if (stageGraphicEditor.Visible)
     {
         stageGraphicEditor.Close();
     }
     if (stagePaletteEditor.Visible)
     {
         stagePaletteEditor.Close();
     }
     spritePaletteEditor.Dispose();
     spriteGraphicEditor.Dispose();
     stageGraphicEditor.Dispose();
     stagePaletteEditor.Dispose();
     if (previewer != null)
     {
         previewer.Close();
     }
 }
        private void Battlefields_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!this.Modified)
            {
                goto Close;
            }
            DialogResult result = MessageBox.Show(
                "Battlefields have not been saved.\n\nWould you like to save changes?", "LAZY SHELL",
                MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

            if (result == DialogResult.Yes)
            {
                Assemble();
            }
            else if (result == DialogResult.No)
            {
                Model.Battlefields  = null;
                Model.TilesetsBF[0] = null;
                Model.PaletteSetsBF = null;
            }
            else if (result == DialogResult.Cancel)
            {
                e.Cancel = true;
                return;
            }
Close:
            tileEditor.Close();
            paletteEditor.Close();
            graphicEditor.Close();
            tileEditor.Dispose();
            paletteEditor.Dispose();
            graphicEditor.Dispose();
        }
예제 #4
0
        private void Effects_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!this.Modified && !molds.Modified && !sequences.Modified)
            {
                goto Close;
            }
            DialogResult result = MessageBox.Show(
                "Effects have not been saved.\n\nWould you like to save changes?", "LAZY SHELL",
                MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

            if (result == DialogResult.Yes)
            {
                Assemble();
            }
            else if (result == DialogResult.No)
            {
                Model.Effects      = null;
                Model.E_animations = null;
            }
            else if (result == DialogResult.Cancel)
            {
                e.Cancel = true;
                return;
            }
Close:
            paletteEditor.Close();
            graphicEditor.Close();
            searchWindow.Close();
            molds.tileEditor.Close();
            paletteEditor.Dispose();
            graphicEditor.Dispose();
            searchWindow.Dispose();
            molds.tileEditor.Dispose();
        }
예제 #5
0
 public void CloseEditors()
 {
     if (paletteEditor != null)
     {
         paletteEditor.Close();
         paletteEditor.Dispose();
     }
     if (graphicEditor != null)
     {
         graphicEditor.Close();
         graphicEditor.Dispose();
     }
 }
예제 #6
0
 public new void Close()
 {
     search.Close();
     paletteEditor.Close();
     paletteEditorMenu.Close();
     tileEditor.Close();
     graphicEditor.Close();
     search.Dispose();
     paletteEditor.Dispose();
     paletteEditorMenu.Dispose();
     tileEditor.Dispose();
     graphicEditor.Dispose();
 }
예제 #7
0
 private void CloseEditors()
 {
     graphicEditor.Close();
     paletteEditor.Close();
     searchWindow.Close();
     graphicEditor.Dispose();
     paletteEditor.Dispose();
     searchWindow.Dispose();
     if (npcPackets != null)
     {
         npcPackets.Close();
         npcPackets.Dispose();
     }
 }
예제 #8
0
        private void WorldMaps_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!this.Modified)
            {
                goto Close;
            }
            DialogResult result = MessageBox.Show(
                "World Maps have not been saved.\n\nWould you like to save changes?", "LAZY SHELL",
                MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

            if (result == DialogResult.Yes)
            {
                Assemble();
            }
            else if (result == DialogResult.No)
            {
                Model.Locations           = null;
                Model.WorldMapGraphics    = null;
                Model.WorldMapPalettes    = null;
                Model.WorldMaps           = null;
                Model.WorldMapSprites     = null;
                Model.WorldMapTilesets[0] = null;
                Model.Palettes            = null;
            }
            else if (result == DialogResult.Cancel)
            {
                e.Cancel = true;
                return;
            }
Close:
            tileEditor.Close();
            tileEditor.Dispose();
            if (paletteEditor != null)
            {
                paletteEditor.Close();
                paletteEditor.Dispose();
            }
            if (graphicEditor != null)
            {
                graphicEditor.Close();
                graphicEditor.Dispose();
            }
            if (logoPaletteEditor != null)
            {
                logoPaletteEditor.Close();
                logoPaletteEditor.Dispose();
            }
            if (logoGraphicEditor != null)
            {
                logoGraphicEditor.Close();
                logoGraphicEditor.Dispose();
            }
            if (spritePaletteEditor != null)
            {
                spritePaletteEditor.Close();
                spritePaletteEditor.Dispose();
            }
            if (spriteGraphicEditor != null)
            {
                spriteGraphicEditor.Close();
                spriteGraphicEditor.Dispose();
            }
        }