Add Tab Metadata

This commit is contained in:
ShadyChibinko
2023-04-11 12:48:47 -04:00
parent ca808c88a4
commit 9d2aecade0
6 changed files with 68 additions and 0 deletions

View File

@@ -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" />