Move selection hotkeys out of world interaction widget

- Split SelectionUtils for selecting actors in the world to a static class
- Split selection hotkeys into their own logic classes
This commit is contained in:
Ivaylo Draganov
2021-09-19 21:44:05 +03:00
committed by Matthias Mailänder
parent e9cc89a336
commit a537346580
6 changed files with 248 additions and 141 deletions

View File

@@ -10,7 +10,7 @@ Container@INGAME_ROOT:
TakeScreenshotKey: TakeScreenshot
MuteAudioKey: ToggleMute
LogicKeyListener@WORLD_KEYHANDLER:
Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, RemoveFromControlGroupHotkeyLogic
Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, RemoveFromControlGroupHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic
RemoveFromControlGroupKey: RemoveFromControlGroup
CycleBasesKey: CycleBase
CycleProductionActorsKey: CycleProductionBuildings
@@ -21,6 +21,8 @@ Container@INGAME_ROOT:
TogglePlayerStanceColorKey: TogglePlayerStanceColor
CycleStatusBarsKey: CycleStatusBars
PauseKey: Pause
SelectAllUnitsKey: SelectAllUnits
SelectUnitsByTypeKey: SelectUnitsByType
Container@WORLD_ROOT:
Children:
LogicTicker@DISCONNECT_WATCHER:
@@ -39,8 +41,6 @@ Container@INGAME_ROOT:
WorldInteractionController@INTERACTION_CONTROLLER:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
SelectAllKey: SelectAllUnits
SelectSameTypeKey: SelectUnitsByType
Container@PLAYER_ROOT:
Container@MENU_ROOT:
TooltipContainer@TOOLTIP_CONTAINER: