Initial no-frills mod selector

This commit is contained in:
Paul Chote
2011-05-11 20:22:34 +12:00
parent fb4a5d4083
commit e8926ccad3
7 changed files with 205 additions and 3 deletions

View File

@@ -44,7 +44,14 @@ namespace OpenRA.Mods.Cnc.Widgets
panel.GetWidget<CncMenuButtonWidget>("QUIT_BUTTON").OnClick = Game.Exit;
// TODO:
panel.GetWidget<CncMenuButtonWidget>("MODS_BUTTON").IsDisabled = () => true;
panel.GetWidget<CncMenuButtonWidget>("MODS_BUTTON").OnClick = () =>
{
Widget.OpenWindow("MODS_PANEL", new Dictionary<string, object>()
{
{ "onExit", new Action(Widget.CloseWindow) },
{ "onSwitch", new Action(Widget.CloseWindow) },
});
};
}
}