Esempio n. 1
0
 private void copyChunkToToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChunkEditor.CopyChunkForm frm = new ChunkEditor.CopyChunkForm();
     frm.numericUpDown1.Value = curChunk + 1;
     if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         Chunks.ChunkList[frm.DestinationChunk] = Chunks.Clone(frm.SourceChunk);
     }
 }
Esempio n. 2
0
 private void copyChunkToToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChunkEditor.CopyChunkForm frm = new ChunkEditor.CopyChunkForm();
     frm.numericUpDown1.Value = curChunk + 1;
     if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         if (LoadedChunkVer == (int)RSDKver.RSDK4)
         {
             Chunksv4.BlockList[frm.DestinationChunk] = Chunksv4.Clone(frm.SourceChunk);
         }
         if (LoadedChunkVer == (int)RSDKver.RSDK3)
         {
             Chunksv3.BlockList[frm.DestinationChunk] = Chunksv3.Clone(frm.SourceChunk);
         }
         if (LoadedChunkVer == (int)RSDKver.RSDK2)
         {
             Chunksv2.BlockList[frm.DestinationChunk] = Chunksv2.Clone(frm.SourceChunk);
         }
         if (LoadedChunkVer == (int)RSDKver.RSDK1)
         {
             Chunksv1.BlockList[frm.DestinationChunk] = Chunksv1.Clone(frm.SourceChunk);
         }
     }
 }