Browse Source

Document PopupMenu id behavior

(cherry picked from commit b8aa5ebfeb30b01db6e70ccc790624632c7273ee)
Ev1lbl0w 2 years ago
parent
commit
6d030f93b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/classes/PopupMenu.xml

+ 1 - 0
doc/classes/PopupMenu.xml

@@ -493,6 +493,7 @@
 			<argument index="0" name="id" type="int" />
 			<argument index="0" name="id" type="int" />
 			<description>
 			<description>
 				Emitted when an item of some [code]id[/code] is pressed or its accelerator is activated.
 				Emitted when an item of some [code]id[/code] is pressed or its accelerator is activated.
+				[b]Note:[/b] If [code]id[/code] is negative (either explicitly or due to overflow), this will return the correponding index instead.
 			</description>
 			</description>
 		</signal>
 		</signal>
 		<signal name="index_pressed">
 		<signal name="index_pressed">