Remove stats button from end-game dialog in mission-type maps
Still available for skirmish games and replays.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user