diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-05 23:44:21 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-05 23:44:21 +0100 |
| commit | 4bb219321edcbbfcb0b7330048d9180cf527eba5 (patch) | |
| tree | 50af6e62dc26a491e9b59a1405b4b3dcd9f17b8a /modules | |
| parent | 39f90600bc553f2273e72708eb2a8d37a8517e86 (diff) | |
| parent | 8221e7546be7e260f59b716faf0094f43c0ade35 (diff) | |
| download | redot-engine-4bb219321edcbbfcb0b7330048d9180cf527eba5.tar.gz | |
Merge pull request #88081 from Calinou/editor-add-bottom-panel-shortcuts
Add editor shortcuts to toggle bottom panel visibility
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/multiplayer/editor/multiplayer_editor_plugin.cpp | 3 | ||||
| -rw-r--r-- | modules/openxr/editor/openxr_editor_plugin.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp index e8dfc3379c..599926ec99 100644 --- a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp +++ b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp @@ -34,6 +34,7 @@ #include "editor_network_profiler.h" #include "replication_editor.h" +#include "editor/editor_command_palette.h" #include "editor/editor_interface.h" #include "editor/editor_node.h" #include "editor/gui/editor_bottom_panel.h" @@ -113,7 +114,7 @@ void MultiplayerEditorDebugger::setup_session(int p_session_id) { MultiplayerEditorPlugin::MultiplayerEditorPlugin() { repl_editor = memnew(ReplicationEditor); - button = EditorNode::get_bottom_panel()->add_item(TTR("Replication"), repl_editor); + button = EditorNode::get_bottom_panel()->add_item(TTR("Replication"), repl_editor, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_replication_bottom_panel", TTR("Toggle Replication Bottom Panel"))); button->hide(); repl_editor->get_pin()->connect("pressed", callable_mp(this, &MultiplayerEditorPlugin::_pinned)); debugger.instantiate(); diff --git a/modules/openxr/editor/openxr_editor_plugin.cpp b/modules/openxr/editor/openxr_editor_plugin.cpp index f545e31073..f6b7f2dd0c 100644 --- a/modules/openxr/editor/openxr_editor_plugin.cpp +++ b/modules/openxr/editor/openxr_editor_plugin.cpp @@ -32,6 +32,7 @@ #include "../action_map/openxr_action_map.h" +#include "editor/editor_command_palette.h" #include "editor/editor_node.h" #include "editor/gui/editor_bottom_panel.h" @@ -53,7 +54,7 @@ void OpenXREditorPlugin::make_visible(bool p_visible) { OpenXREditorPlugin::OpenXREditorPlugin() { action_map_editor = memnew(OpenXRActionMapEditor); - EditorNode::get_bottom_panel()->add_item(TTR("OpenXR Action Map"), action_map_editor); + EditorNode::get_bottom_panel()->add_item(TTR("OpenXR Action Map"), action_map_editor, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_openxr_action_map_bottom_panel", TTR("Toggle OpenXR Action Map Bottom Panel"))); #ifndef ANDROID_ENABLED select_runtime = memnew(OpenXRSelectRuntime); |
