From e63a7215bb9f2490f9bf020e69cf054a5178c38e Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Wed, 1 Nov 2023 12:46:02 +0800 Subject: [PATCH] Update `add_submenu` doc to mention that submenu should already exist (cherry picked from commit 34c27021e02b08062195dcf27abdbfea6dce21e7) --- doc/classes/PopupMenu.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml index 2b91236f564..b9a1c17d2ef 100644 --- a/doc/classes/PopupMenu.xml +++ b/doc/classes/PopupMenu.xml @@ -172,7 +172,7 @@ - Adds an item that will act as a submenu of the parent [PopupMenu] node when clicked. The [param submenu] argument is the name of the child [PopupMenu] node that will be shown when the item is clicked. + Adds an item that will act as a submenu of the parent [PopupMenu] node when clicked. The [param submenu] argument must be the name of an existing [PopupMenu] that has been added as a child to this node. This submenu will be shown when the item is clicked, hovered for long enough, or activated using the [code]ui_select[/code] or [code]ui_right[/code] input actions. An [param id] can optionally be provided. If no [param id] is provided, one will be created from the index.