Fix OptionButton ID value range documentation

Co-authored-by: Micky <micheledevita2@gmail.com>
This commit is contained in:
Aaron Franke 2025-06-24 08:12:49 -07:00
parent 05640191e7
commit 358d2ce4cc
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF

View file

@ -6,7 +6,7 @@
<description>
[OptionButton] is a type of button that brings up a dropdown with selectable items when pressed. The item selected becomes the "current" item and is displayed as the button text.
See also [BaseButton] which contains common properties and methods associated with this node.
[b]Note:[/b] The ID values used for items are limited to 32 bits, not full 64 bits of [int]. This has a range of [code]-2^32[/code] to [code]2^32 - 1[/code], i.e. [code]-2147483648[/code] to [code]2147483647[/code].
[b]Note:[/b] The IDs used for items are limited to signed 32-bit integers, not the full 64 bits of [int]. These have a range of [code]-2^31[/code] to [code]2^31 - 1[/code], that is, [code]-2147483648[/code] to [code]2147483647[/code].
[b]Note:[/b] The [member Button.text] and [member Button.icon] properties are set automatically based on the selected item. They shouldn't be changed manually.
</description>
<tutorials>