Add platform override support for hotkeys and unhardcode editor hotkeys
This commit is contained in:
committed by
Paul Chote
parent
1cf4838b08
commit
6a1a6b6397
@@ -591,7 +591,7 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Width: 100
|
||||
Text: Undo
|
||||
Font: Bold
|
||||
Key: z ctrl
|
||||
Key: EditorUndo
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipText: Undo last step
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
@@ -602,7 +602,7 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Width: 100
|
||||
Text: Redo
|
||||
Font: Bold
|
||||
Key: y ctrl
|
||||
Key: EditorRedo
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipText: Redo last step
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
@@ -612,7 +612,7 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Width: 96
|
||||
Height: 25
|
||||
Text: Copy/Paste
|
||||
Key: c ctrl
|
||||
Key: EditorCopy
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipText: Copy
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
|
||||
@@ -21,6 +21,8 @@ Container@HOTKEYS_PANEL:
|
||||
Types: Chat
|
||||
Control Groups:
|
||||
Types: ControlGroups
|
||||
Editor Commands:
|
||||
Types: Editor
|
||||
Width: PARENT_RIGHT
|
||||
Height: PARENT_BOTTOM
|
||||
Children:
|
||||
|
||||
@@ -162,6 +162,7 @@ Hotkeys:
|
||||
common|hotkeys/supportpowers.yaml
|
||||
common|hotkeys/viewport.yaml
|
||||
common|hotkeys/chat.yaml
|
||||
common|hotkeys/editor.yaml
|
||||
common|hotkeys/control-groups.yaml
|
||||
cnc|hotkeys.yaml
|
||||
|
||||
|
||||
@@ -573,7 +573,7 @@ Container@EDITOR_WORLD_ROOT:
|
||||
TooltipText: Copy
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
Font: Bold
|
||||
Key: c ctrl
|
||||
Key: EditorCopy
|
||||
DropDownButton@COPYFILTER_BUTTON:
|
||||
X: 170
|
||||
Width: 140
|
||||
@@ -586,7 +586,7 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Width: 70
|
||||
Text: Undo
|
||||
Font: Bold
|
||||
Key: z ctrl
|
||||
Key: EditorUndo
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipText: Undo last step
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
@@ -596,7 +596,7 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Width: 70
|
||||
Text: Redo
|
||||
Font: Bold
|
||||
Key: y ctrl
|
||||
Key: EditorRedo
|
||||
TooltipTemplate: BUTTON_TOOLTIP
|
||||
TooltipText: Redo last step
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
|
||||
@@ -21,6 +21,8 @@ Container@HOTKEYS_PANEL:
|
||||
Types: Chat
|
||||
Control Groups:
|
||||
Types: ControlGroups
|
||||
Editor Commands:
|
||||
Types: Editor
|
||||
Width: PARENT_RIGHT
|
||||
Height: PARENT_BOTTOM
|
||||
Children:
|
||||
|
||||
21
mods/common/hotkeys/editor.yaml
Normal file
21
mods/common/hotkeys/editor.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
EditorUndo: Z Ctrl
|
||||
Description: Undo
|
||||
Types: Editor
|
||||
Contexts: Editor
|
||||
Platform:
|
||||
OSX: Z Meta
|
||||
|
||||
EditorRedo: Y Ctrl
|
||||
Description: Redo
|
||||
Types: Editor
|
||||
Contexts: Editor
|
||||
Platform:
|
||||
OSX: Z Meta, Shift
|
||||
Linux: Z Ctrl, Shift
|
||||
|
||||
EditorCopy: C Ctrl
|
||||
Description: Copy
|
||||
Types: Editor
|
||||
Contexts: Editor
|
||||
Platform:
|
||||
OSX: C Meta
|
||||
@@ -147,6 +147,7 @@ Hotkeys:
|
||||
common|hotkeys/supportpowers.yaml
|
||||
common|hotkeys/viewport.yaml
|
||||
common|hotkeys/chat.yaml
|
||||
common|hotkeys/editor.yaml
|
||||
common|hotkeys/control-groups.yaml
|
||||
d2k|hotkeys.yaml
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ Hotkeys:
|
||||
common|hotkeys/supportpowers.yaml
|
||||
common|hotkeys/viewport.yaml
|
||||
common|hotkeys/chat.yaml
|
||||
common|hotkeys/editor.yaml
|
||||
common|hotkeys/control-groups.yaml
|
||||
ra|hotkeys.yaml
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ Container@HOTKEYS_PANEL:
|
||||
Types: Chat
|
||||
Control Groups:
|
||||
Types: ControlGroups
|
||||
Editor Commands:
|
||||
Types: Editor
|
||||
Depth Preview Debug:
|
||||
Types: DepthDebug
|
||||
Width: PARENT_RIGHT
|
||||
|
||||
@@ -204,6 +204,7 @@ Hotkeys:
|
||||
common|hotkeys/supportpowers.yaml
|
||||
common|hotkeys/viewport.yaml
|
||||
common|hotkeys/chat.yaml
|
||||
common|hotkeys/editor.yaml
|
||||
common|hotkeys/control-groups.yaml
|
||||
ts|hotkeys.yaml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user