mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[doc] Use "param" instead of "code" to refer to parameters
This commit is contained in:
@@ -35,14 +35,14 @@
|
||||
<return type="Texture2D" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the button icon from the tab at index [code]tab_idx[/code].
|
||||
Returns the button icon from the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_control" qualifiers="const">
|
||||
<return type="Control" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the [Control] node from the tab at index [code]tab_idx[/code].
|
||||
Returns the [Control] node from the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_count" qualifiers="const">
|
||||
@@ -55,42 +55,42 @@
|
||||
<return type="Texture2D" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the [Texture2D] for the tab at index [code]tab_idx[/code] or [code]null[/code] if the tab has no [Texture2D].
|
||||
Returns the [Texture2D] for the tab at index [param tab_idx] or [code]null[/code] if the tab has no [Texture2D].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_idx_at_point" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="point" type="Vector2" />
|
||||
<description>
|
||||
Returns the index of the tab at local coordinates [code]point[/code]. Returns [code]-1[/code] if the point is outside the control boundaries or if there's no tab at the queried position.
|
||||
Returns the index of the tab at local coordinates [param point]. Returns [code]-1[/code] if the point is outside the control boundaries or if there's no tab at the queried position.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_idx_from_control" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="control" type="Control" />
|
||||
<description>
|
||||
Returns the index of the tab tied to the given [code]control[/code]. The control must be a child of the [TabContainer].
|
||||
Returns the index of the tab tied to the given [param control]. The control must be a child of the [TabContainer].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_title" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the title of the tab at index [code]tab_idx[/code]. Tab titles default to the name of the indexed child node, but this can be overridden with [method set_tab_title].
|
||||
Returns the title of the tab at index [param tab_idx]. Tab titles default to the name of the indexed child node, but this can be overridden with [method set_tab_title].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_tab_disabled" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the tab at index [code]tab_idx[/code] is disabled.
|
||||
Returns [code]true[/code] if the tab at index [param tab_idx] is disabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_tab_hidden" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the tab at index [code]tab_idx[/code] is hidden.
|
||||
Returns [code]true[/code] if the tab at index [param tab_idx] is hidden.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_popup">
|
||||
@@ -105,7 +105,7 @@
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="icon" type="Texture2D" />
|
||||
<description>
|
||||
Sets the button icon from the tab at index [code]tab_idx[/code].
|
||||
Sets the button icon from the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_disabled">
|
||||
@@ -113,7 +113,7 @@
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="disabled" type="bool" />
|
||||
<description>
|
||||
If [code]disabled[/code] is [code]true[/code], disables the tab at index [code]tab_idx[/code], making it non-interactable.
|
||||
If [param disabled] is [code]true[/code], disables the tab at index [param tab_idx], making it non-interactable.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_hidden">
|
||||
@@ -121,7 +121,7 @@
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="hidden" type="bool" />
|
||||
<description>
|
||||
If [code]hidden[/code] is [code]true[/code], hides the tab at index [code]tab_idx[/code], making it disappear from the tab area.
|
||||
If [param hidden] is [code]true[/code], hides the tab at index [param tab_idx], making it disappear from the tab area.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_icon">
|
||||
@@ -129,7 +129,7 @@
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="icon" type="Texture2D" />
|
||||
<description>
|
||||
Sets an icon for the tab at index [code]tab_idx[/code].
|
||||
Sets an icon for the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_title">
|
||||
@@ -137,7 +137,7 @@
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="title" type="String" />
|
||||
<description>
|
||||
Sets a custom title for the tab at index [code]tab_idx[/code] (tab titles default to the name of the indexed child node). Set it back to the child's name to make the tab default to it again.
|
||||
Sets a custom title for the tab at index [param tab_idx] (tab titles default to the name of the indexed child node). Set it back to the child's name to make the tab default to it again.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
||||
Reference in New Issue
Block a user