Improve documentation of EditorPlugin.add_tool_submenu_item method
(cherry picked from commit 45767fe5f6
)
This commit is contained in:
parent
ea3a42c500
commit
9e96e1f1c0
|
@ -128,7 +128,7 @@
|
|||
<argument index="3" name="ud" type="Variant" default="null">
|
||||
</argument>
|
||||
<description>
|
||||
Add a custom menu to 'Project > Tools' 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 > 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 > Tools >[/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">
|
||||
|
|
Loading…
Reference in New Issue