Add EnableDebugCommandsInReplays option

This commit is contained in:
rob-v
2017-08-09 20:30:15 +02:00
committed by reaperrr
parent 6840177776
commit dd9d5450bc
5 changed files with 17 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
Game.BeforeGameStart += UnregisterEvents;
CloseChat();
chatText.IsDisabled = () => world.IsReplay;
chatText.IsDisabled = () => world.IsReplay && !Game.Settings.Debug.EnableDebugCommandsInReplays;
var keyListener = chatChrome.Get<LogicKeyListenerWidget>("KEY_LISTENER");
keyListener.OnKeyPress = e =>

View File

@@ -674,6 +674,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
BindCheckboxPref(panel, "FETCH_NEWS_CHECKBOX", gs, "FetchNews");
BindCheckboxPref(panel, "LUADEBUG_CHECKBOX", ds, "LuaDebug");
BindCheckboxPref(panel, "SENDSYSINFO_CHECKBOX", ds, "SendSystemInformation");
BindCheckboxPref(panel, "REPLAY_COMMANDS_CHECKBOX", ds, "EnableDebugCommandsInReplays");
return () => { };
}