Make remove from control group hotkey available only to players
This commit is contained in:
committed by
Smittytron
parent
c096934db8
commit
f5ab9d95fe
@@ -25,7 +25,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
|||||||
|
|
||||||
[ObjectCreator.UseCtor]
|
[ObjectCreator.UseCtor]
|
||||||
public RemoveFromControlGroupHotkeyLogic(Widget widget, ModData modData, World world, Dictionary<string, MiniYaml> logicArgs)
|
public RemoveFromControlGroupHotkeyLogic(Widget widget, ModData modData, World world, Dictionary<string, MiniYaml> logicArgs)
|
||||||
: base(widget, modData, "RemoveFromControlGroupKey", "WORLD_KEYHANDLER", logicArgs)
|
: base(widget, modData, "RemoveFromControlGroupKey", "PLAYER_KEYHANDLER", logicArgs)
|
||||||
{
|
{
|
||||||
selection = world.Selection;
|
selection = world.Selection;
|
||||||
this.world = world;
|
this.world = world;
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ Container@INGAME_ROOT:
|
|||||||
TakeScreenshotKey: TakeScreenshot
|
TakeScreenshotKey: TakeScreenshot
|
||||||
MuteAudioKey: ToggleMute
|
MuteAudioKey: ToggleMute
|
||||||
LogicKeyListener@WORLD_KEYHANDLER:
|
LogicKeyListener@WORLD_KEYHANDLER:
|
||||||
Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, RemoveFromControlGroupHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic
|
Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic
|
||||||
RemoveFromControlGroupKey: RemoveFromControlGroup
|
|
||||||
CycleBasesKey: CycleBase
|
CycleBasesKey: CycleBase
|
||||||
CycleProductionActorsKey: CycleProductionBuildings
|
CycleProductionActorsKey: CycleProductionBuildings
|
||||||
CycleHarvestersKey: CycleHarvesters
|
CycleHarvestersKey: CycleHarvesters
|
||||||
@@ -1162,6 +1161,9 @@ Container@PLAYER_WIDGETS:
|
|||||||
BookmarkSaveKeyPrefix: MapBookmarkSave
|
BookmarkSaveKeyPrefix: MapBookmarkSave
|
||||||
BookmarkRestoreKeyPrefix: MapBookmarkRestore
|
BookmarkRestoreKeyPrefix: MapBookmarkRestore
|
||||||
BookmarkKeyCount: 4
|
BookmarkKeyCount: 4
|
||||||
|
LogicKeyListener@PLAYER_KEYHANDLER:
|
||||||
|
Logic: RemoveFromControlGroupHotkeyLogic
|
||||||
|
RemoveFromControlGroupKey: RemoveFromControlGroup
|
||||||
ControlGroups@CONTROLGROUPS:
|
ControlGroups@CONTROLGROUPS:
|
||||||
SelectGroupKeyPrefix: ControlGroupSelect
|
SelectGroupKeyPrefix: ControlGroupSelect
|
||||||
CreateGroupKeyPrefix: ControlGroupCreate
|
CreateGroupKeyPrefix: ControlGroupCreate
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ Container@INGAME_ROOT:
|
|||||||
TakeScreenshotKey: TakeScreenshot
|
TakeScreenshotKey: TakeScreenshot
|
||||||
MuteAudioKey: ToggleMute
|
MuteAudioKey: ToggleMute
|
||||||
LogicKeyListener@WORLD_KEYHANDLER:
|
LogicKeyListener@WORLD_KEYHANDLER:
|
||||||
Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, RemoveFromControlGroupHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic
|
Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic
|
||||||
RemoveFromControlGroupKey: RemoveFromControlGroup
|
|
||||||
CycleBasesKey: CycleBase
|
CycleBasesKey: CycleBase
|
||||||
CycleProductionActorsKey: CycleProductionBuildings
|
CycleProductionActorsKey: CycleProductionBuildings
|
||||||
CycleHarvestersKey: CycleHarvesters
|
CycleHarvestersKey: CycleHarvesters
|
||||||
|
|||||||
@@ -251,4 +251,4 @@ ControlGroupJumpTo10: NUMBER_0 Alt
|
|||||||
RemoveFromControlGroup:
|
RemoveFromControlGroup:
|
||||||
Description: Remove from control group
|
Description: Remove from control group
|
||||||
Types: ControlGroups
|
Types: ControlGroups
|
||||||
Contexts: Player, Spectator
|
Contexts: Player
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ Container@PLAYER_WIDGETS:
|
|||||||
Logic: LoadIngameChatLogic
|
Logic: LoadIngameChatLogic
|
||||||
Children:
|
Children:
|
||||||
Container@CHAT_ROOT:
|
Container@CHAT_ROOT:
|
||||||
|
LogicKeyListener@PLAYER_KEYHANDLER:
|
||||||
|
Logic: RemoveFromControlGroupHotkeyLogic
|
||||||
|
RemoveFromControlGroupKey: RemoveFromControlGroup
|
||||||
ControlGroups@CONTROLGROUPS:
|
ControlGroups@CONTROLGROUPS:
|
||||||
SelectGroupKeyPrefix: ControlGroupSelect
|
SelectGroupKeyPrefix: ControlGroupSelect
|
||||||
CreateGroupKeyPrefix: ControlGroupCreate
|
CreateGroupKeyPrefix: ControlGroupCreate
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ Container@PLAYER_WIDGETS:
|
|||||||
Logic: LoadIngameChatLogic
|
Logic: LoadIngameChatLogic
|
||||||
Children:
|
Children:
|
||||||
Container@CHAT_ROOT:
|
Container@CHAT_ROOT:
|
||||||
|
LogicKeyListener@PLAYER_KEYHANDLER:
|
||||||
|
Logic: RemoveFromControlGroupHotkeyLogic
|
||||||
|
RemoveFromControlGroupKey: RemoveFromControlGroup
|
||||||
ControlGroups@CONTROLGROUPS:
|
ControlGroups@CONTROLGROUPS:
|
||||||
SelectGroupKeyPrefix: ControlGroupSelect
|
SelectGroupKeyPrefix: ControlGroupSelect
|
||||||
CreateGroupKeyPrefix: ControlGroupCreate
|
CreateGroupKeyPrefix: ControlGroupCreate
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ Container@PLAYER_WIDGETS:
|
|||||||
DecreaseDepthPreviewContrastKey: DecreaseDepthPreviewContrast
|
DecreaseDepthPreviewContrastKey: DecreaseDepthPreviewContrast
|
||||||
IncreaseDepthPreviewOffsetKey: IncreaseDepthPreviewOffset
|
IncreaseDepthPreviewOffsetKey: IncreaseDepthPreviewOffset
|
||||||
DecreaseDepthPreviewOffsetKey: DecreaseDepthPreviewOffset
|
DecreaseDepthPreviewOffsetKey: DecreaseDepthPreviewOffset
|
||||||
|
LogicKeyListener@PLAYER_KEYHANDLER:
|
||||||
|
Logic: RemoveFromControlGroupHotkeyLogic
|
||||||
|
RemoveFromControlGroupKey: RemoveFromControlGroup
|
||||||
ControlGroups@CONTROLGROUPS:
|
ControlGroups@CONTROLGROUPS:
|
||||||
SelectGroupKeyPrefix: ControlGroupSelect
|
SelectGroupKeyPrefix: ControlGroupSelect
|
||||||
CreateGroupKeyPrefix: ControlGroupCreate
|
CreateGroupKeyPrefix: ControlGroupCreate
|
||||||
|
|||||||
Reference in New Issue
Block a user