Example #1
0
 public void LoadChunks(Bitmap TileSet)
 {
     StageChunksList.Images.Clear(); // Clear the previous images, since we load the entire file!
     for (int i = 0; i < Chunks.MaxChunks; i++)
     {
         StageChunksList.Images.Add(Chunks.ChunkList[i].Render(TileSet));
     }
     StageChunksList.Refresh(); // Update the tileList control
 }
Example #2
0
 private void PrevChunkButton_Click(object sender, EventArgs e)
 {
     curChunk--;       //go to the previous chunk
     if (curChunk < 0) //Don't go below zero
     {
         curChunk = 0;
     }
     StageChunksList.SelectedIndex = curChunk;
     StageChunksList.Refresh();
     RedrawChunk();
 }
Example #3
0
 private void NextChunkButton_Click(object sender, EventArgs e)
 {
     curChunk++;                          //go to the next chunk
     if (curChunk > Chunks.MaxChunks - 1) //Make sure we don't go further than the amount of chunks we have
     {
         curChunk = Chunks.MaxChunks - 1;
     }
     StageChunksList.SelectedIndex = curChunk;
     StageChunksList.Refresh();
     RedrawChunk();
 }