Add tab tooltip text
This commit is contained in:
parent
7abe0c6014
commit
b37ddfc606
6 changed files with 82 additions and 1 deletions
|
|
@ -111,6 +111,13 @@
|
|||
Returns the title of the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tab_tooltip" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the tooltip text of the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_tab_disabled" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
|
|
@ -224,6 +231,15 @@
|
|||
Sets a [param title] for the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_tab_tooltip">
|
||||
<return type="void" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="tooltip" type="String" />
|
||||
<description>
|
||||
Sets a [param tooltip] for tab at index [param tab_idx].
|
||||
[b]Note:[/b] By default, if the [param tooltip] is empty and the tab text is truncated (not all characters fit into the tab), the title will be displayed as a tooltip. To hide the tooltip, assign [code]" "[/code] as the [param tooltip] text.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="clip_tabs" type="bool" setter="set_clip_tabs" getter="get_clip_tabs" default="true">
|
||||
|
|
|
|||
|
|
@ -92,6 +92,13 @@
|
|||
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="get_tab_tooltip" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<description>
|
||||
Returns the tooltip text of the tab at index [param tab_idx].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_tab_disabled" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
|
|
@ -173,6 +180,15 @@
|
|||
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>
|
||||
<method name="set_tab_tooltip">
|
||||
<return type="void" />
|
||||
<param index="0" name="tab_idx" type="int" />
|
||||
<param index="1" name="tooltip" type="String" />
|
||||
<description>
|
||||
Sets a custom tooltip text for tab at index [param tab_idx].
|
||||
[b]Note:[/b] By default, if the [param tooltip] is empty and the tab text is truncated (not all characters fit into the tab), the title will be displayed as a tooltip. To hide the tooltip, assign [code]" "[/code] as the [param tooltip] text.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="all_tabs_in_front" type="bool" setter="set_all_tabs_in_front" getter="is_all_tabs_in_front" default="false">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue