Add "Change Mod" buttons to RA and D2K. Fixes #3401.

This commit is contained in:
Paul Chote
2013-06-15 21:24:49 +12:00
parent 01a625691a
commit 0e21107694
4 changed files with 62 additions and 28 deletions

View File

@@ -34,6 +34,16 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Ui.OpenWindow("INSTALL_FROMCD_PANEL", args);
panel.Get<ButtonWidget>("QUIT_BUTTON").OnClick = Game.Exit;
panel.Get<ButtonWidget>("MODS_BUTTON").OnClick = () =>
{
Ui.OpenWindow("MODS_PANEL", new WidgetArgs()
{
{ "onExit", () => {} },
// Close this panel
{ "onSwitch", Ui.CloseWindow },
});
};
}
}
}