Add hotkey settings panel with a hotkey remap dialog

* Add HotkeyDialogLogic.cs
* Add dialog-hotkey.yaml to all mods
* Add `GetFirstDuplicate` method to HotkeyManager to aid in validation
* Add "Player" and/or "Spectator" type to all hotkeys to allow for
validation based on overlapping types
* Change settings.yaml and SettingsLogic.cs to work with the new dialog
This commit is contained in:
Ivaylo Draganov
2019-05-10 13:51:23 +03:00
committed by abcdefg30
parent 9783fdaf78
commit c9ff54bfd5
23 changed files with 619 additions and 156 deletions

View File

@@ -1,26 +1,26 @@
ObserverCombinedView: MINUS
Description: All Players
Types: Observer
Types: Observer, Spectator
ObserverWorldView: EQUALS
Description: Disable Shroud
Types: Observer
Types: Observer, Spectator
ReplaySpeedSlow: F9
Description: Slow speed
Types: Replay
Types: Replay, Spectator
ReplaySpeedRegular: F10
Description: Regular speed
Types: Replay
Types: Replay, Spectator
ReplaySpeedFast: F11
Description: Fast speed
Types: Replay
Types: Replay, Spectator
ReplaySpeedMax: F12
Description: Maximum speed
Types: Replay
Types: Replay, Spectator
StatisticsNone: F1
Description: Disable statistics
@@ -28,15 +28,15 @@ StatisticsNone: F1
StatisticsBasic: F2
Description: Basic statistics
Types: Observer, Replay
Types: Observer, Replay, Spectator
StatisticsEconomy: F3
Description: Economy statistics
Types: Observer, Replay
Types: Observer, Replay, Spectator
StatisticsProduction: F4
Description: Production statistics
Types: Observer, Replay
Types: Observer, Replay, Spectator
StatisticsSupportPowers: F5
Description: Support Power statistics
@@ -44,12 +44,12 @@ StatisticsSupportPowers: F5
StatisticsCombat: F6
Description: Combat statistics
Types: Observer, Replay
Types: Observer, Replay, Spectator
StatisticsGraph: F7
Description: Statistics graph
Types: Observer, Replay
Types: Observer, Replay, Spectator
StatisticsArmyGraph: F8
Description: Army value graph
Types: Observer, Replay
Types: Observer, Replay, Spectator