summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2022-12-28 21:35:32 +0300
committerGitHub <noreply@github.com>2022-12-28 21:35:32 +0300
commit7e1bd3f95a10acf60e07a8a6518cc80bfee6fbbf (patch)
treec1b6c19e8a7a5a6553f0597c314212a0f7027973
parent5674fa04aeb44a0d9cf48073fe2be25d1b804acf (diff)
parentf130ad622a38a6e7ece3c1980428faa441ffae31 (diff)
Merge pull request #70571 from Piralein/optionbutton-classref
Add missing OptionButton method descriptions
-rw-r--r--doc/classes/OptionButton.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml
index a58a6249ae..fdf0fff0fb 100644
--- a/doc/classes/OptionButton.xml
+++ b/doc/classes/OptionButton.xml
@@ -94,6 +94,8 @@
<return type="int" />
<param index="0" name="from_last" type="bool" default="false" />
<description>
+ Returns the index of the first item which is not disabled, or marked as a separator. If [param from_last] is [code]true[/code], the items will be searched in reverse order.
+ Returns [code]-1[/code] if no item is found.
</description>
</method>
<method name="get_selected_id" qualifiers="const">
@@ -111,6 +113,7 @@
<method name="has_selectable_items" qualifiers="const">
<return type="bool" />
<description>
+ Returns [code]true[/code] if this button contains at least one item which is not disabled, or marked as a separator.
</description>
</method>
<method name="is_item_disabled" qualifiers="const">
@@ -124,6 +127,7 @@
<return type="bool" />
<param index="0" name="idx" type="int" />
<description>
+ Returns [code]true[/code] if the item at index [param idx] is marked as a separator.
</description>
</method>
<method name="remove_item">