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,23 +1,23 @@
ProductionTypeBuilding: E
Description: Building Tab
Types: Production
Types: Production, Player
ProductionTypeDefense: R
Description: Defense Tab
Types: Production
Types: Production, Player
ProductionTypeInfantry: T
Description: Infantry Tab
Types: Production
Types: Production, Player
ProductionTypeVehicle: Y
Description: Vehicle Tab
Types: Production
Types: Production, Player
ProductionTypeAircraft: U
Description: Aircraft Tab
Types: Production
Types: Production, Player
PowerDown: X
Description: Power-down mode
Types: OrderGenerator
Types: OrderGenerator, Player

View File

@@ -172,6 +172,7 @@ ChromeLayout:
common|chrome/missionbrowser.yaml
common|chrome/confirmation-dialogs.yaml
common|chrome/editor.yaml
common|chrome/dialog-hotkey.yaml
Voices:
ts|audio/voices.yaml