diff options
author | VolTer <mew.pur.pur@abv.bg> | 2023-04-30 16:26:09 +0200 |
---|---|---|
committer | VolTer <mew.pur.pur@abv.bg> | 2023-05-28 14:24:54 +0200 |
commit | 151a4ba6a59f6e965bb56ce8fbc75b14d056fa79 (patch) | |
tree | e5d78c825e09d7718156870377155dbc2331518a /doc/classes/MenuButton.xml | |
parent | a67d37f7cffe7f31c68e971280950d487ea99e2c (diff) | |
download | redot-engine-151a4ba6a59f6e965bb56ce8fbc75b14d056fa79.tar.gz |
Overhaul the top sections of the class reference (GUI classes)
Diffstat (limited to 'doc/classes/MenuButton.xml')
-rw-r--r-- | doc/classes/MenuButton.xml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/classes/MenuButton.xml b/doc/classes/MenuButton.xml index c937371a52..4f62660bb9 100644 --- a/doc/classes/MenuButton.xml +++ b/doc/classes/MenuButton.xml @@ -1,11 +1,10 @@ <?xml version="1.0" encoding="UTF-8" ?> <class name="MenuButton" inherits="Button" version="4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> - Special button that brings up a [PopupMenu] when clicked. + A button that brings up a [PopupMenu] when clicked. </brief_description> <description> - 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 item new properties. + A button that brings up a [PopupMenu] when clicked. To create new items inside this [PopupMenu], use [code]get_popup().add_item("My Item Name")[/code]. You can also create them directly from Godot editor's inspector. See also [BaseButton] which contains common properties and methods associated with this node. </description> <tutorials> |