summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFeniks <writetofeniks@gmail.com>2020-01-16 22:06:49 +0000
committerFeniks <writetofeniks@gmail.com>2020-01-18 07:22:19 +0000
commit156f5b7ce23a7be4c5b59eae4901acf4904935ff (patch)
treec287a4370c4573917cc98cdd00ba3c60f07b1a9d /doc
parent8b0e2a409b9c111cf63ac8db0045675f6e8efa4f (diff)
Improved MenuButton Description
I expanded description of MenueButton to explain how to create the items inside of the pop up as this is initially a mystery to many new people.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/MenuButton.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/MenuButton.xml b/doc/classes/MenuButton.xml
index 52fb4b9ca1..642b94a047 100644
--- a/doc/classes/MenuButton.xml
+++ b/doc/classes/MenuButton.xml
@@ -4,7 +4,8 @@
Special button that brings up a [PopupMenu] when clicked.
</brief_description>
<description>
- Special button that brings up a [PopupMenu] when clicked. That's pretty much all it does, as it's just a helper class when building GUIs.
+ Special button that brings up a [PopupMenu] when clicked.
+ New items can be created inside this [PopupMenu] using [code]get_popup().add_item("My Item Name")[/code]. You can also create them directly from the editor. To do so, select the MenuButton node, then in the toolbar at the top of the 2D editor, click [b]Items[/b] then click [b]Add[/b] in the popup. You will be able to give each items new properties.
</description>
<tutorials>
</tutorials>