Generate map previews on save.

This commit is contained in:
Paul Chote
2016-03-02 22:44:47 +00:00
parent b969d61466
commit 9c4dd54fa3
8 changed files with 94 additions and 223 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}
// Briefing tab
if (world.Map.CustomPreview != null)
if (world.Map.Exists("map.png"))
{
numTabs++;
var mapTabButton = widget.Get<ButtonWidget>(string.Concat("BUTTON", numTabs.ToString()));