Remove engine references to MAINMENU_BG. Don't push the menu background onto the window list. Crashes whenever a delegate tries to open MAINMENU_BG.
This commit is contained in:
@@ -313,7 +313,8 @@ namespace OpenRA.Widgets
|
||||
|
||||
public static void CloseWindow()
|
||||
{
|
||||
RootWidget.Children.Remove(WindowList.Pop());
|
||||
if (WindowList.Count > 0)
|
||||
RootWidget.Children.Remove(WindowList.Pop());
|
||||
if (WindowList.Count > 0)
|
||||
rootWidget.Children.Add(WindowList.Peek());
|
||||
}
|
||||
@@ -331,6 +332,11 @@ namespace OpenRA.Widgets
|
||||
WindowList.Push(window);
|
||||
return window;
|
||||
}
|
||||
|
||||
public static Widget LoadWidget(string id)
|
||||
{
|
||||
return Game.modData.WidgetLoader.LoadWidget(new Dictionary<string, object>(), rootWidget, id);
|
||||
}
|
||||
|
||||
public static void DoTick()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user