From 810180f4a2e4363b2a60fa6a8f77b5f005a5c243 Mon Sep 17 00:00:00 2001 From: Logan Detrick Date: Thu, 11 Dec 2025 04:28:02 -0800 Subject: [PATCH] Update EditorDock shortcut documentation --- doc/classes/EditorDock.xml | 2 +- doc/classes/EditorPlugin.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/classes/EditorDock.xml b/doc/classes/EditorDock.xml index d0ab092fc8d..c972c4f1d9e 100644 --- a/doc/classes/EditorDock.xml +++ b/doc/classes/EditorDock.xml @@ -96,7 +96,7 @@ The icon for the dock, as a texture. If specified, it will override [member icon_name]. - The shortcut used to open the dock. This property can only be set before this dock is added via [method EditorPlugin.add_dock]. + The shortcut used to open the dock. If [code]true[/code], the dock will always display an icon, regardless of [member EditorSettings.interface/editor/dock_tab_style] or [member EditorSettings.interface/editor/bottom_dock_tab_style]. diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index 69b29aafaaa..f0ea1b12032 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -431,7 +431,8 @@ Adds a control to the bottom panel (together with Output, Debug, Animation, etc.). Returns a reference to a button that is outside the scene tree. It's up to you to hide/show the button when needed. When your plugin is deactivated, make sure to remove your custom control with [method remove_control_from_bottom_panel] and free it with [method Node.queue_free]. - Optionally, you can specify a shortcut parameter. When pressed, this shortcut will toggle the bottom panel's visibility. See the default editor bottom panel shortcuts in the Editor Settings for inspiration. Per convention, they all use [kbd]Alt[/kbd] modifier. + [param shortcut] is a shortcut that, when activated, will toggle the bottom panel's visibility. The shortcut object is only set when this control is added to the bottom panel. + [b]Note[/b] See the default editor bottom panel shortcuts in the Editor Settings for inspiration. By convention, they all use [kbd]Alt[/kbd] modifier.