diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-18 09:25:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-18 09:25:49 +0100 |
commit | ea1da40d799bf1bed338c46686e5fb35bfbed50b (patch) | |
tree | 628cecf116709e7ce4dce798cb6a41b4b94f04bf | |
parent | 94a9cdb3b0a3a0a0086babc11f10e854da3c169a (diff) | |
parent | 156f5b7ce23a7be4c5b59eae4901acf4904935ff (diff) |
Merge pull request #35223 from Feniks-Gaming/MenueButtonDescription
Improved MenuButton Description
-rw-r--r-- | doc/classes/MenuButton.xml | 3 |
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> |