Make control group hotkeys configurable

- Split control groups management to its own interface
- Add hotkeys for selecting, creating, adding to and combining with control groups
- Add a ControlGroups widget to manage the player interaction
This commit is contained in:
Ivaylo Draganov
2021-09-14 22:54:45 +03:00
committed by abcdefg30
parent 04b456d6c2
commit 7a93b9ea8c
31 changed files with 598 additions and 137 deletions

View File

@@ -9,8 +9,12 @@ Container@PLAYER_WIDGETS:
DecreaseDepthPreviewContrastKey: DecreaseDepthPreviewContrast
IncreaseDepthPreviewOffsetKey: IncreaseDepthPreviewOffset
DecreaseDepthPreviewOffsetKey: DecreaseDepthPreviewOffset
LogicKeyListener@CONTROLGROUP_KEYHANDLER:
Logic: ControlGroupLogic
ControlGroups@CONTROLGROUPS:
SelectGroupKeyPrefix: ControlGroupSelect
CreateGroupKeyPrefix: ControlGroupCreate
AddToGroupKeyPrefix: ControlGroupAddTo
CombineWithGroupKeyPrefix: ControlGroupCombineWith
JumpToGroupKeyPrefix: ControlGroupJumpTo
LogicTicker@SIDEBAR_TICKER:
Container@SUPPORT_POWERS:
Logic: SupportPowerBinLogic

View File

@@ -19,6 +19,9 @@ Container@HOTKEYS_PANEL:
Types: Music
Chat Commands:
Types: Chat
Control Groups:
Template: TWO_COLUMN
Types: ControlGroups
Depth Preview Debug:
Types: DepthDebug
Width: PARENT_RIGHT

View File

@@ -201,6 +201,7 @@ Hotkeys:
common|hotkeys/supportpowers.yaml
common|hotkeys/viewport.yaml
common|hotkeys/chat.yaml
common|hotkeys/control-groups.yaml
ts|hotkeys.yaml
LoadScreen: LogoStripeLoadScreen

View File

@@ -4,6 +4,7 @@
ScreenMap:
ActorMap:
Selection:
ControlGroups:
MusicPlaylist:
VictoryMusic: score
DefeatMusic: maps