Browse Source

Improve documentation of EditorPlugin.add_tool_submenu_item method

Max Hunt 6 năm trước cách đây
mục cha
commit
45767fe5f6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      doc/classes/EditorPlugin.xml

+ 2 - 2
doc/classes/EditorPlugin.xml

@@ -128,7 +128,7 @@
 			<argument index="3" name="ud" type="Variant" default="null">
 			<argument index="3" name="ud" type="Variant" default="null">
 			</argument>
 			</argument>
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="add_tool_submenu_item">
 		<method name="add_tool_submenu_item">
@@ -139,7 +139,7 @@
 			<argument index="1" name="submenu" type="Object">
 			<argument index="1" name="submenu" type="Object">
 			</argument>
 			</argument>
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="apply_changes" qualifiers="virtual">
 		<method name="apply_changes" qualifiers="virtual">