Merge pull request #80203 from WhalesState/Dev2

Add shortcut handling to `OptionButton`
This commit is contained in:
Rémi Verschelde 2023-08-17 11:24:14 +02:00
commit 0fff0b1054
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 33 additions and 0 deletions

View file

@ -148,6 +148,13 @@
Passing [code]-1[/code] as the index deselects any currently selected item.
</description>
</method>
<method name="set_disable_shortcuts">
<return type="void" />
<param index="0" name="disabled" type="bool" />
<description>
If [code]true[/code], shortcuts are disabled and cannot be used to trigger the button.
</description>
</method>
<method name="set_item_disabled">
<return type="void" />
<param index="0" name="idx" type="int" />