add a new menu item to setup default players in editor

This commit is contained in:
Chris Forbes
2011-10-15 12:28:59 +13:00
parent d202f9627f
commit 3991026cf3
3 changed files with 21 additions and 5 deletions

View File

@@ -447,5 +447,14 @@ namespace OpenRA.Editor
surface1.Chunks.Clear();
surface1.Invalidate();
}
void SetupDefaultPlayers(object sender, EventArgs e)
{
dirty = true;
surface1.Map.MakeDefaultPlayers();
surface1.Chunks.Clear();
surface1.Invalidate();
}
}
}