Add GUI checkbox for Debug.StrictActivityChecking.

This commit is contained in:
Paul Chote
2018-12-26 16:41:10 +13:00
committed by reaperrr
parent 4dea39fffe
commit 2a2ad71db9
3 changed files with 15 additions and 0 deletions

View File

@@ -497,6 +497,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
BindCheckboxPref(panel, "REPLAY_COMMANDS_CHECKBOX", ds, "EnableDebugCommandsInReplays"); BindCheckboxPref(panel, "REPLAY_COMMANDS_CHECKBOX", ds, "EnableDebugCommandsInReplays");
BindCheckboxPref(panel, "CHECKUNSYNCED_CHECKBOX", ds, "SyncCheckUnsyncedCode"); BindCheckboxPref(panel, "CHECKUNSYNCED_CHECKBOX", ds, "SyncCheckUnsyncedCode");
BindCheckboxPref(panel, "CHECKBOTSYNC_CHECKBOX", ds, "SyncCheckBotModuleCode"); BindCheckboxPref(panel, "CHECKBOTSYNC_CHECKBOX", ds, "SyncCheckBotModuleCode");
BindCheckboxPref(panel, "STRICTACTIVITY_CHECKBOX", ds, "StrictActivityChecking");
panel.Get("DEBUG_OPTIONS").IsVisible = () => ds.DisplayDeveloperSettings; panel.Get("DEBUG_OPTIONS").IsVisible = () => ds.DisplayDeveloperSettings;
panel.Get("DEBUG_HIDDEN_LABEL").IsVisible = () => !ds.DisplayDeveloperSettings; panel.Get("DEBUG_HIDDEN_LABEL").IsVisible = () => !ds.DisplayDeveloperSettings;

View File

@@ -629,6 +629,13 @@ Container@SETTINGS_PANEL:
Height: 20 Height: 20
Font: Regular Font: Regular
Text: Enable Debug Commands in Replays Text: Enable Debug Commands in Replays
Checkbox@STRICTACTIVITY_CHECKBOX:
X: 310
Y: 280
Width: 300
Height: 20
Font: Regular
Text: Strict Activity checking
Button@BACK_BUTTON: Button@BACK_BUTTON:
Key: escape Key: escape
Y: 393 Y: 393

View File

@@ -640,3 +640,10 @@ Background@SETTINGS_PANEL:
Height: 20 Height: 20
Font: Regular Font: Regular
Text: Enable Debug Commands in Replays Text: Enable Debug Commands in Replays
Checkbox@STRICTACTIVITY_CHECKBOX:
X: 310
Y: 280
Width: 300
Height: 20
Font: Regular
Text: Strict Activity checking