Add a hook for widgets being removed, and ensure widgets are removed consistently.
This commit is contained in:
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.RA
|
||||
public void WorldLoaded(World world)
|
||||
{
|
||||
// Remove all open widgets
|
||||
Widget.RootWidget.Children.Clear();
|
||||
Widget.ResetAll();
|
||||
|
||||
if (world.LocalPlayer != null)
|
||||
Game.OpenWindow(world, Info.Widget);
|
||||
|
||||
Reference in New Issue
Block a user