Răsfoiți Sursa

Merge pull request #107940 from aaronfranke/doc-option-button

Fix OptionButton ID value range documentation
Rémi Verschelde 2 luni în urmă
părinte
comite
32984bea48
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      doc/classes/OptionButton.xml

+ 1 - 1
doc/classes/OptionButton.xml

@@ -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>