Pipe mod music installation through the ModChooser
This commit is contained in:
@@ -41,8 +41,17 @@ namespace OpenRA.Mods.Common.LoadScreens
|
||||
|
||||
public void StartGame(Arguments args)
|
||||
{
|
||||
Ui.LoadWidget("MODCHOOSER_BACKGROUND", Ui.Root, new WidgetArgs());
|
||||
Ui.OpenWindow("MODCHOOSER_DIALOG");
|
||||
var widgetArgs = new WidgetArgs();
|
||||
|
||||
Ui.LoadWidget("MODCHOOSER_BACKGROUND", Ui.Root, widgetArgs);
|
||||
|
||||
if (args != null && args.Contains("installMusic"))
|
||||
{
|
||||
widgetArgs.Add("modId", args.GetValue("installMusic", ""));
|
||||
Ui.OpenWindow("INSTALL_MUSIC_PANEL", widgetArgs);
|
||||
}
|
||||
else
|
||||
Ui.OpenWindow("MODCHOOSER_DIALOG", widgetArgs);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user