Remove another hardcoded widget reference and prepare for saner init code.

This commit is contained in:
Paul Chote
2011-05-09 19:42:37 +12:00
parent 2e1e8fd7e8
commit 3d347848f3
5 changed files with 28 additions and 4 deletions

View File

@@ -70,6 +70,12 @@ namespace OpenRA.Mods.Cnc
Font.DrawText(text, new float2(Renderer.Resolution.Width - textSize.X - 20, Renderer.Resolution.Height - textSize.Y - 20), Color.Black);
r.EndFrame( new NullInputHandler() );
}
public void StartGame()
{
Widget.RootWidget.RemoveChildren();
Game.modData.WidgetLoader.LoadWidget( new Dictionary<string,object>(), Widget.RootWidget, "INIT_SETUP" );
}
}
}