summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-03-17 13:50:16 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-03-17 13:50:16 +0800
commita635ecf6d497347d81905d551cec24fd011761fb (patch)
treecb4fc45258ca8ae2122c97f2167a8aeaee8a1d31 /doc/classes
parent178961a6dc14155c0e65ec0040a2b2b328550317 (diff)
Add item tooltip access to OptionButton
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/OptionButton.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml
index f65925f0f6..69e6d4b74c 100644
--- a/doc/classes/OptionButton.xml
+++ b/doc/classes/OptionButton.xml
@@ -74,6 +74,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>
@@ -156,6 +163,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" />