Remove stats button from end-game dialog in mission-type maps

Still available for skirmish games and replays.
This commit is contained in:
Oliver Brakmann
2014-09-15 06:26:45 +02:00
parent 928ee9c625
commit 09bda8b709

View File

@@ -74,6 +74,7 @@ namespace OpenRA.Mods.RA.Widgets
}
var statsButton = dialog.Get<ButtonWidget>("STATS_BUTTON");
statsButton.IsVisible = () => !(world.Map.Type == "Mission" || world.Map.Type == "Campaign") || world.IsReplay;
statsButton.OnClick = () =>
{
showStats = true;