浏览代码

Document PopupMenu id behavior

(cherry picked from commit b8aa5ebfeb30b01db6e70ccc790624632c7273ee)
Ev1lbl0w 2 年之前
父节点
当前提交
6d030f93b7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/PopupMenu.xml

+ 1 - 0
doc/classes/PopupMenu.xml

@@ -493,6 +493,7 @@
 			<argument index="0" name="id" type="int" />
 			<description>
 				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>
 		</signal>
 		<signal name="index_pressed">