Add a hook for widgets being removed, and ensure widgets are removed consistently.
This commit is contained in:
@@ -67,7 +67,7 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public void StartGame()
|
||||
{
|
||||
Widget.RootWidget.RemoveChildren();
|
||||
Widget.ResetAll();
|
||||
Game.modData.WidgetLoader.LoadWidget( new WidgetArgs(), Widget.RootWidget, "INIT_SETUP" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user