Unhardcode music control hotkeys.

This commit is contained in:
Paul Chote
2017-07-23 17:51:07 +00:00
committed by reaperrr
parent 8d4ffee32a
commit 9a5b5d9b6f
10 changed files with 65 additions and 15 deletions

View File

@@ -610,10 +610,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
var hotkeys = new Dictionary<string, string>()
{
{ "NextTrack", "Next" },
{ "PreviousTrack", "Previous" },
{ "StopMusic", "Stop" },
{ "PauseMusic", "Pause or Resume" }
{ "StopMusicKey", "Stop" },
{ "PauseMusicKey", "Pause or Resume" },
{ "PrevMusicKey", "Previous" },
{ "NextMusicKey", "Next" }
};
var header = ScrollItemWidget.Setup(hotkeyHeader, returnTrue, doNothing);