Remove another hardcoded widget reference and prepare for saner init code.
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.RA
|
||||
{
|
||||
public class NullLoadScreen : ILoadScreen
|
||||
@@ -22,6 +25,12 @@ namespace OpenRA.Mods.RA
|
||||
Game.Renderer.BeginFrame(float2.Zero);
|
||||
Game.Renderer.EndFrame( new NullInputHandler() );
|
||||
}
|
||||
|
||||
public void StartGame()
|
||||
{
|
||||
Widget.RootWidget.RemoveChildren();
|
||||
Game.modData.WidgetLoader.LoadWidget( new Dictionary<string,object>(), Widget.RootWidget, "INIT_SETUP" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user