Remove revealing views from observer mode in missions

This commit is contained in:
Oliver Brakmann
2015-07-25 19:50:11 +02:00
parent 808bbb8d2e
commit 4de03e991c
3 changed files with 15 additions and 9 deletions

View File

@@ -87,7 +87,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var stats = widget.GetOrNull<MenuButtonWidget>("OBSERVER_STATS_BUTTON");
if (stats != null)
{
stats.IsDisabled = () => disableSystemButtons;
stats.IsDisabled = () => disableSystemButtons || world.Map.Visibility.HasFlag(MapVisibility.MissionSelector);
stats.OnClick = () => OpenMenuPanel(stats);
}
}