diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-28 23:59:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 23:59:18 +0100 |
commit | ffa566c770a859628900fe85f41aec065d116b9f (patch) | |
tree | 0623514af74f20519192db499fa1a44b9e14764d /doc | |
parent | e22a16200368881a5cf7f060efe92c506c80a4d5 (diff) | |
parent | 3b146c5eaa06d9f6827c651802b9fb2a9a1e013d (diff) |
Merge pull request #57330 from eikobear/master
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/OptionButton.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml index 7bb67be4c4..02226df46b 100644 --- a/doc/classes/OptionButton.xml +++ b/doc/classes/OptionButton.xml @@ -84,7 +84,7 @@ <method name="get_selected_id" qualifiers="const"> <return type="int" /> <description> - Returns the ID of the selected item, or [code]0[/code] if no item is selected. + Returns the ID of the selected item, or [code]-1[/code] if no item is selected. </description> </method> <method name="get_selected_metadata" qualifiers="const"> @@ -112,6 +112,7 @@ <argument index="0" name="idx" type="int" /> <description> Selects an item by index and makes it the current item. This will work even if the item is disabled. + Passing [code]-1[/code] as the index deselects any currently selected item. </description> </method> <method name="set_item_disabled"> |