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
3 changed files with 33 additions and 0 deletions
+7
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" />