Use the same mechanism for loading ingame and shellmap ui.

This commit is contained in:
Paul Chote
2011-05-08 21:23:01 +12:00
parent 07d5f91325
commit d95138b600
6 changed files with 41 additions and 11 deletions

View File

@@ -71,11 +71,11 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
if (FileSystem.Exists(Info.TestFile))
{
Game.LoadShellMap();
Widget.RootWidget.RemoveChildren();
if (Info.InstallMode == "cnc")
Widget.LoadWidget("MENU_BACKGROUND", new Dictionary<string, object>());
else
if (Info.InstallMode != "cnc")
{
Widget.RootWidget.RemoveChildren();
Widget.OpenWindow("MAINMENU_BG");
}
}
else
{