Simplify mod content installation plumbing.

This commit is contained in:
Paul Chote
2014-12-13 13:34:36 +13:00
parent ec7a32184e
commit 7bfffeadc2
7 changed files with 46 additions and 46 deletions

View File

@@ -85,7 +85,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (installButton != null)
{
installButton.IsDisabled = () => world == null || !world.IsShellmap;
var args = new string[] { "Launch.Window=INSTALL_MUSIC_PANEL" };
var args = new string[] { "Install.Music=true" };
installButton.OnClick = () =>
{
Game.modData.LoadScreen.Display(); // HACK: prevent a flicker when transitioning to the installation dialog