public PaletteViewerMap(TilesViewer formViewer)
 {
     InitializeComponent();
     this.formViewer    = formViewer;
     undoButton.Enabled = false;
     redoButton.Enabled = false;
 }
Esempio n. 2
0
 private void projectTreeview_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.Name == "Node_Overworld")
     {
         var tilesViewer = new TilesViewer(romManager);
         tilesViewer.MdiParent = this.MdiParent;
         tilesViewer.Show();
     }
     if (e.Node.Parent != null)
     {
         if (e.Node.Parent.Parent != null)
         {
             if (e.Node.Parent.Parent.Name == "Node_Palettes")
             {
                 var paletteEditor = new PaletteEditorSingle();
                 paletteEditor.tempColors = new Color[(e.Node.Tag as Color[][])[e.Node.Index].Length];
                 Array.Copy((e.Node.Tag as Color[][])[e.Node.Index], paletteEditor.tempColors, (e.Node.Tag as Color[][])[e.Node.Index].Length);
                 if (paletteEditor.ShowDialog() == DialogResult.OK)
                 {
                     (e.Node.Tag as Color[][])[e.Node.Index] = paletteEditor.tempColors;
                 }
             }
         }
     }
 }
Esempio n. 3
0
 private void projectTreeview_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.Name == "tileViewer")
     {
         var tilesViewer = new TilesViewer(romManager);
         tilesViewer.MdiParent = this.MdiParent;
         tilesViewer.Show();
     }
 }