summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-13 08:31:33 +0200
committerGitHub <noreply@github.com>2019-08-13 08:31:33 +0200
commit57270dd943f858dbbf9f2915f027baa95c1bdc50 (patch)
treec82ee62b7a41069047a55eefd2e6cb4bb7bae416 /doc/classes
parentb7adb21f3b75068a1147d57c8bc3263c18164240 (diff)
parent45767fe5f6b353d93ba1e256f7d0d09831adc0bc (diff)
Merge pull request #31334 from m-r-hunt/EditorPlugin-doc-improvement
Improve documentation of EditorPlugin.add_tool_submenu_item method
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/EditorPlugin.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml
index fddc5e9d36..89e2f0580b 100644
--- a/doc/classes/EditorPlugin.xml
+++ b/doc/classes/EditorPlugin.xml
@@ -128,7 +128,7 @@
<argument index="3" name="ud" type="Variant" default="null">
</argument>
<description>
- Adds a custom menu to [b]Project &gt; Tools[/b] as [code]name[/code] that calls [code]callback[/code] on an instance of [code]handler[/code] with a parameter [code]ud[/code] when user activates it.
+ Adds a custom menu item to [b]Project &gt; Tools[/b] as [code]name[/code] that calls [code]callback[/code] on an instance of [code]handler[/code] with a parameter [code]ud[/code] when user activates it.
</description>
</method>
<method name="add_tool_submenu_item">
@@ -139,7 +139,7 @@
<argument index="1" name="submenu" type="Object">
</argument>
<description>
- Like [method add_tool_menu_item] but adds the [code]submenu[/code] item inside the [code]name[/code] menu.
+ Adds a custom submenu under [b]Project &gt; Tools &gt;[/b] [code]name[/code]. [code]submenu[/code] should be an object of class [PopupMenu]. This submenu should be cleaned up using [code]remove_tool_menu_item(name)[/code].
</description>
</method>
<method name="apply_changes" qualifiers="virtual">