public void RepatchBlocks(bool type)
{
/* Question blocks */
for (int BlockIdx = 0; BlockIdx < 14; BlockIdx++) {
Tilesets[0].Overrides[BlockIdx + 64] = (short)(BlockIdx + (type ? 89 : 73));
}
Tilesets[0].Overrides[48] = (short)(type ? 103 : 87);
Tilesets[0].Overrides[49] = (short)(type ? 104 : 88);
/* Brick blocks */
for (int BlockIdx = 0; BlockIdx < 9; BlockIdx++) {
Tilesets[0].Overrides[BlockIdx + 80] = (short)(BlockIdx + (type ? 114 : 105));
}
/* Invisible blocks */
for (int BlockIdx = 0; BlockIdx < 6; BlockIdx++) {
Tilesets[0].Overrides[BlockIdx + 176] = (short)(BlockIdx + (type ? 129 : 123));
}
}
private void smallBlockOverlaysToolStripMenuItem_Click(object sender, EventArgs e) { GFX.RepatchBlocks(smallBlockOverlaysToolStripMenuItem.Checked); Properties.Settings.Default.SmallBlockOverlays = smallBlockOverlaysToolStripMenuItem.Checked; Properties.Settings.Default.Save(); Level.ReRenderAll(); levelEditorControl1.updateTileCache(true); Invalidate(true); }