Hide developer-only settings behind a hidden setting.

This commit is contained in:
Paul Chote
2018-12-26 16:27:53 +13:00
committed by reaperrr
parent 601990aa27
commit 69105180eb
4 changed files with 117 additions and 70 deletions

View File

@@ -495,6 +495,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var ssi = panel.Get<CheckboxWidget>("SENDSYSINFO_CHECKBOX");
ssi.IsDisabled = () => !gs.FetchNews;
panel.Get("DEBUG_OPTIONS").IsVisible = () => ds.DisplayDeveloperSettings;
panel.Get("DEBUG_HIDDEN_LABEL").IsVisible = () => !ds.DisplayDeveloperSettings;
return () => { };
}