fixed #536 -- add grid to editor

This commit is contained in:
Chris Forbes
2011-10-07 09:34:23 +13:00
parent 87223f5b64
commit 5ced7e270c
3 changed files with 28 additions and 1 deletions

View File

@@ -423,6 +423,13 @@ namespace OpenRA.Editor
surface1.ShowActorNames = showActorNamesToolStripMenuItem.Checked;
}
void ShowGridClicked(object sender, EventArgs e)
{
showGridToolStripMenuItem.Checked ^= true;
surface1.ShowGrid = showGridToolStripMenuItem.Checked;
surface1.Chunks.Clear();
}
void FixOpenAreas(object sender, EventArgs e)
{
dirty = true;