Fix documentation about TreeItem button ID

(cherry picked from commit bb766a8fb6)
This commit is contained in:
Haoyu Qiu 2022-02-17 00:29:00 +08:00 committed by Rémi Verschelde
parent 9b161542dc
commit 46037af570
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<argument index="3" name="disabled" type="bool" default="false" /> <argument index="3" name="disabled" type="bool" default="false" />
<argument index="4" name="tooltip" type="String" default="&quot;&quot;" /> <argument index="4" name="tooltip" type="String" default="&quot;&quot;" />
<description> <description>
Adds a button with [Texture] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code]. Adds a button with [Texture] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] is used to identify the button. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code].
</description> </description>
</method> </method>
<method name="call_recursive" qualifiers="vararg"> <method name="call_recursive" qualifiers="vararg">
@ -69,7 +69,7 @@
<return type="int" /> <return type="int" />
<argument index="0" name="column" type="int" /> <argument index="0" name="column" type="int" />
<description> <description>
Returns the number of buttons in column [code]column[/code]. May be used to get the most recently added button's index, if no index was specified. Returns the number of buttons in column [code]column[/code].
</description> </description>
</method> </method>
<method name="get_button_tooltip" qualifiers="const"> <method name="get_button_tooltip" qualifiers="const">