Install Music button - installing not implemented.

This commit is contained in:
Paul Chote
2011-01-23 20:54:03 +13:00
parent 1c67242210
commit a81c865620
3 changed files with 25 additions and 0 deletions

View File

@@ -29,6 +29,15 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
Widget.CloseWindow();
return true;
};
var installed = Rules.Music.Count(m => m.Value.Exists) > 1;
// Hack around some mix packages including hellmarch for ra
bg.GetWidget("BUTTON_INSTALL").IsVisible = () => !installed;
bg.GetWidget("BUTTON_INSTALL").OnMouseUp = mi => {
return true;
};
bg.GetWidget("BUTTON_PLAY").OnMouseUp = mi =>
{