Ver Fonte

Merge pull request #102350 from IceflowRE/update_add_item_doc

Update OptionButton documentation
Thaddeus Crews há 1 mês atrás
pai
commit
c68213fe2a
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      doc/classes/OptionButton.xml

+ 2 - 0
doc/classes/OptionButton.xml

@@ -19,6 +19,7 @@
 			<param index="2" name="id" type="int" default="-1" />
 			<description>
 				Adds an item, with a [param texture] icon, text [param label] and (optionally) [param id]. If no [param id] is passed, the item index will be used as the item's ID. New items are appended at the end.
+				[b]Note:[/b] The item will be selected if there are no other items.
 			</description>
 		</method>
 		<method name="add_item">
@@ -27,6 +28,7 @@
 			<param index="1" name="id" type="int" default="-1" />
 			<description>
 				Adds an item, with text [param label] and (optionally) [param id]. If no [param id] is passed, the item index will be used as the item's ID. New items are appended at the end.
+				[b]Note:[/b] The item will be selected if there are no other items.
 			</description>
 		</method>
 		<method name="add_separator">