[MenuBar] Use PopupMenu title property as a menu name.

This commit is contained in:
Pāvels Nadtočajevs
2024-12-20 23:35:07 +02:00
parent 89001f91d2
commit 9604e98a52
5 changed files with 40 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
A horizontal menu bar that creates a menu for each [PopupMenu] child.
</brief_description>
<description>
A horizontal menu bar that creates a menu for each [PopupMenu] child. New items are created by adding [PopupMenu]s to this node.
A horizontal menu bar that creates a menu for each [PopupMenu] child. New items are created by adding [PopupMenu]s to this node. Item title is determined by [member Window.title], or node name if [member Window.title] is empty. Item title can be overridden using [method set_menu_title].
</description>
<tutorials>
</tutorials>