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 =>