mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add item tooltip access to OptionButton
(cherry picked from commit a635ecf6d4)
This commit is contained in:
committed by
Rémi Verschelde
parent
b33eed23ae
commit
d537a88299
@@ -80,6 +80,13 @@
|
||||
Returns the text of the item at index [code]idx[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_item_tooltip" qualifiers="const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<description>
|
||||
Returns the tooltip of the item at index [code]idx[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_popup" qualifiers="const">
|
||||
<return type="PopupMenu" />
|
||||
<description>
|
||||
@@ -161,6 +168,14 @@
|
||||
Sets the text of the item at index [code]idx[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_item_tooltip">
|
||||
<return type="void" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="1" name="tooltip" type="String" />
|
||||
<description>
|
||||
Sets the tooltip of the item at index [code]idx[/code].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="action_mode" type="int" setter="set_action_mode" getter="get_action_mode" overrides="BaseButton" enum="BaseButton.ActionMode" default="0" />
|
||||
|
||||
Reference in New Issue
Block a user