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,31 +1,31 @@
ProductionTypeBuilding: E
Description: Building Tab
Types: Production
Types: Production, Player
ProductionTypeUpgrade: R
Description: Upgrade 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
ProductionTypeTank: I
Description: Tank Tab
Types: Production
Types: Production, Player
ProductionTypeMerchant: O
Description: Starport Tab
Types: Production
Types: Production, Player
PowerDown: X
Description: Power-down mode
Types: OrderGenerator
Types: OrderGenerator, Player

View File

@@ -109,6 +109,7 @@ ChromeLayout:
common|chrome/replaybrowser.yaml
common|chrome/gamesave-browser.yaml
common|chrome/gamesave-loading.yaml
common|chrome/dialog-hotkey.yaml
Weapons:
d2k|weapons/debris.yaml