Disable map and music install until they can be finished.

This commit is contained in:
Paul Chote
2011-02-04 20:36:18 +13:00
parent 0ddcff7ec7
commit fdb85d67eb
2 changed files with 5 additions and 3 deletions

View File

@@ -56,7 +56,8 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
return true;
};
bg.GetWidget<ButtonWidget>("BUTTON_INSTALL").OnMouseUp = mi => InstallMap();
bg.GetWidget("BUTTON_INSTALL").IsVisible = () => false;
//bg.GetWidget<ButtonWidget>("BUTTON_INSTALL").OnMouseUp = mi => InstallMap();
scrollpanel = bg.GetWidget<ScrollPanelWidget>("MAP_LIST");
itemTemplate = scrollpanel.GetWidget<ContainerWidget>("MAP_TEMPLATE");
EnumerateMaps();

View File

@@ -31,14 +31,15 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
};
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_INSTALL").IsVisible = () => false;
bg.GetWidget("BUTTON_PLAY").OnMouseUp = mi =>
{
if (CurrentSong == null)