Reference the BaseButton class explicitly in button class documentations

Users are sometimes confused as to the `pressed` property not being
visible in the Button class documentation. This is because `pressed`
is defined in BaseButton.
This commit is contained in:
Hugo Locurcio
2020-09-23 23:34:28 +02:00
parent 72aaf81518
commit 038baede5a
8 changed files with 8 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
<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 items new properties.
See also [BaseButton] which contains common properties and methods associated with this node.
</description>
<tutorials>
</tutorials>