mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add Tab Metadata
This commit is contained in:
@@ -72,6 +72,13 @@
|
||||
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_metadata" qualifiers="const">
|
||||
<return type="Variant" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the metadata value set to the tab at index [param tab_idx] using [method set_tab_metadata]. If no metadata was previously set, returns [code]null[/code] by default.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_title" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
@@ -132,6 +139,14 @@
|
||||
Sets an icon for the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_metadata">
|
||||
<return type="void" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="metadata" type="Variant" />
|
||||
<description>
|
||||
Sets the metadata value for the tab at index [param tab_idx], which can be retrieved later using [method get_tab_metadata].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_title">
|
||||
<return type="void" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
|
||||
Reference in New Issue
Block a user