Add a hook for widgets being removed, and ensure widgets are removed consistently.

This commit is contained in:
Paul Chote
2011-05-31 21:14:28 +12:00
parent bbce4368d9
commit ad3f378545
9 changed files with 40 additions and 17 deletions

View File

@@ -68,7 +68,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Game.LoadShellMap();
if (Info.InstallMode != "cnc")
{
Widget.RootWidget.RemoveChildren();
Widget.ResetAll();
Widget.OpenWindow("MAINMENU_BG");
}
}