Added support for pause/play/speed hotkeys in replays

This commit is contained in:
Honza Vrátník
2016-03-17 11:27:55 +01:00
parent b75c7e4869
commit 1728f9d662
3 changed files with 17 additions and 1 deletions

View File

@@ -467,7 +467,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var hotkeys = new Dictionary<string, string>()
{
{ "ObserverCombinedView", "All Players" },
{ "ObserverWorldView", "Disable Shroud" }
{ "ObserverWorldView", "Disable Shroud" },
{ "PauseKey", "Pause/Play" },
{ "ReplaySpeedSlowKey", "Slow speed" },
{ "ReplaySpeedRegularKey", "Regular speed" },
{ "ReplaySpeedFastKey", "Fast speed" },
{ "ReplaySpeedMaxKey", "Maximum speed" }
};
var header = ScrollItemWidget.Setup(hotkeyHeader, returnTrue, doNothing);