Hide developer-only settings behind a hidden setting.
This commit is contained in:
@@ -87,6 +87,8 @@ namespace OpenRA
|
|||||||
|
|
||||||
public class DebugSettings
|
public class DebugSettings
|
||||||
{
|
{
|
||||||
|
public bool DisplayDeveloperSettings = false;
|
||||||
|
|
||||||
public bool BotDebug = false;
|
public bool BotDebug = false;
|
||||||
public bool LuaDebug = false;
|
public bool LuaDebug = false;
|
||||||
public bool PerfText = false;
|
public bool PerfText = false;
|
||||||
|
|||||||
@@ -495,6 +495,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
var ssi = panel.Get<CheckboxWidget>("SENDSYSINFO_CHECKBOX");
|
var ssi = panel.Get<CheckboxWidget>("SENDSYSINFO_CHECKBOX");
|
||||||
ssi.IsDisabled = () => !gs.FetchNews;
|
ssi.IsDisabled = () => !gs.FetchNews;
|
||||||
|
|
||||||
|
panel.Get("DEBUG_OPTIONS").IsVisible = () => ds.DisplayDeveloperSettings;
|
||||||
|
panel.Get("DEBUG_HIDDEN_LABEL").IsVisible = () => !ds.DisplayDeveloperSettings;
|
||||||
|
|
||||||
return () => { };
|
return () => { };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -571,43 +571,64 @@ Container@SETTINGS_PANEL:
|
|||||||
Y: 200
|
Y: 200
|
||||||
Width: PARENT_RIGHT
|
Width: PARENT_RIGHT
|
||||||
Font: Bold
|
Font: Bold
|
||||||
Text: Debug
|
Text: Developer
|
||||||
Align: Center
|
Align: Center
|
||||||
Checkbox@BOTDEBUG_CHECKBOX:
|
Container@DEBUG_HIDDEN_LABEL:
|
||||||
X: 15
|
|
||||||
Y: 220
|
|
||||||
Width: 300
|
|
||||||
Height: 20
|
|
||||||
Font: Regular
|
|
||||||
Text: Show Bot Debug Messages
|
|
||||||
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
|
||||||
X: 15
|
|
||||||
Y: 250
|
Y: 250
|
||||||
Width: 300
|
Width: PARENT_RIGHT
|
||||||
Height: 20
|
Children:
|
||||||
Font: Regular
|
Label@A:
|
||||||
Text: Check Sync around Unsynced Code
|
Width: PARENT_RIGHT
|
||||||
Checkbox@CHECKBOTSYNC_CHECKBOX:
|
Height: 20
|
||||||
X: 15
|
Font: Regular
|
||||||
Y: 280
|
Text: Additional developer-specific options can be enabled via the
|
||||||
Width: 300
|
Align: Center
|
||||||
Height: 20
|
Label@B:
|
||||||
Font: Regular
|
Y: 20
|
||||||
Text: Check Sync around BotModule Code
|
Width: PARENT_RIGHT
|
||||||
Checkbox@LUADEBUG_CHECKBOX:
|
Height: 20
|
||||||
X: 310
|
Font: Regular
|
||||||
Y: 220
|
Text: Debug.DisplayDeveloperSettings setting or launch flag
|
||||||
Width: 300
|
Align: Center
|
||||||
Height: 20
|
Container@DEBUG_OPTIONS:
|
||||||
Font: Regular
|
Width: PARENT_RIGHT
|
||||||
Text: Show Map Debug Messages
|
Height: PARENT_BOTTOM
|
||||||
Checkbox@REPLAY_COMMANDS_CHECKBOX:
|
Children:
|
||||||
X: 310
|
Checkbox@BOTDEBUG_CHECKBOX:
|
||||||
Y: 250
|
X: 15
|
||||||
Width: 300
|
Y: 220
|
||||||
Height: 20
|
Width: 300
|
||||||
Font: Regular
|
Height: 20
|
||||||
Text: Enable Debug Commands in Replays
|
Font: Regular
|
||||||
|
Text: Show Bot Debug Messages
|
||||||
|
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
||||||
|
X: 15
|
||||||
|
Y: 250
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Check Sync around Unsynced Code
|
||||||
|
Checkbox@CHECKBOTSYNC_CHECKBOX:
|
||||||
|
X: 15
|
||||||
|
Y: 280
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Check Sync around BotModule Code
|
||||||
|
Checkbox@LUADEBUG_CHECKBOX:
|
||||||
|
X: 310
|
||||||
|
Y: 220
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Show Map Debug Messages
|
||||||
|
Checkbox@REPLAY_COMMANDS_CHECKBOX:
|
||||||
|
X: 310
|
||||||
|
Y: 250
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Enable Debug Commands in Replays
|
||||||
Button@BACK_BUTTON:
|
Button@BACK_BUTTON:
|
||||||
Key: escape
|
Key: escape
|
||||||
Y: 393
|
Y: 393
|
||||||
|
|||||||
@@ -582,40 +582,61 @@ Background@SETTINGS_PANEL:
|
|||||||
Y: 200
|
Y: 200
|
||||||
Width: PARENT_RIGHT
|
Width: PARENT_RIGHT
|
||||||
Font: Bold
|
Font: Bold
|
||||||
Text: Debug
|
Text: Developer
|
||||||
Align: Center
|
Align: Center
|
||||||
Checkbox@BOTDEBUG_CHECKBOX:
|
Container@DEBUG_HIDDEN_LABEL:
|
||||||
X: 15
|
|
||||||
Y: 220
|
|
||||||
Width: 300
|
|
||||||
Height: 20
|
|
||||||
Font: Regular
|
|
||||||
Text: Show Bot Debug Messages
|
|
||||||
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
|
||||||
X: 15
|
|
||||||
Y: 250
|
Y: 250
|
||||||
Width: 300
|
Width: PARENT_RIGHT
|
||||||
Height: 20
|
Children:
|
||||||
Font: Regular
|
Label@A:
|
||||||
Text: Check Sync around Unsynced Code
|
Width: PARENT_RIGHT
|
||||||
Checkbox@CHECKBOTSYNC_CHECKBOX:
|
Height: 20
|
||||||
X: 15
|
Font: Regular
|
||||||
Y: 280
|
Text: Additional developer-specific options can be enabled via the
|
||||||
Width: 300
|
Align: Center
|
||||||
Height: 20
|
Label@B:
|
||||||
Font: Regular
|
Y: 20
|
||||||
Text: Check Sync around BotModule Code
|
Width: PARENT_RIGHT
|
||||||
Checkbox@LUADEBUG_CHECKBOX:
|
Height: 20
|
||||||
X: 310
|
Font: Regular
|
||||||
Y: 220
|
Text: Debug.DisplayDeveloperSettings setting or launch flag
|
||||||
Width: 300
|
Align: Center
|
||||||
Height: 20
|
Container@DEBUG_OPTIONS:
|
||||||
Font: Regular
|
Width: PARENT_RIGHT
|
||||||
Text: Show Map Debug Messages
|
Height: PARENT_BOTTOM
|
||||||
Checkbox@REPLAY_COMMANDS_CHECKBOX:
|
Children:
|
||||||
X: 310
|
Checkbox@BOTDEBUG_CHECKBOX:
|
||||||
Y: 250
|
X: 15
|
||||||
Width: 300
|
Y: 220
|
||||||
Height: 20
|
Width: 300
|
||||||
Font: Regular
|
Height: 20
|
||||||
Text: Enable Debug Commands in Replays
|
Font: Regular
|
||||||
|
Text: Show Bot Debug Messages
|
||||||
|
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
||||||
|
X: 15
|
||||||
|
Y: 250
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Check Sync around Unsynced Code
|
||||||
|
Checkbox@CHECKBOTSYNC_CHECKBOX:
|
||||||
|
X: 15
|
||||||
|
Y: 280
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Check Sync around BotModule Code
|
||||||
|
Checkbox@LUADEBUG_CHECKBOX:
|
||||||
|
X: 310
|
||||||
|
Y: 220
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Show Map Debug Messages
|
||||||
|
Checkbox@REPLAY_COMMANDS_CHECKBOX:
|
||||||
|
X: 310
|
||||||
|
Y: 250
|
||||||
|
Width: 300
|
||||||
|
Height: 20
|
||||||
|
Font: Regular
|
||||||
|
Text: Enable Debug Commands in Replays
|
||||||
|
|||||||
Reference in New Issue
Block a user