W3cubDocs

/Godot 2.1

MenuButton

Inherits: Button < BaseButton < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Special button that brings up a PopupMenu when clicked.

Member Functions

PopupMenu get_popup ( )

Signals

  • about_to_show ( )

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.

Member Function Description

PopupMenu get_popup ( )

Return the PopupMenu contained in this button.

© 2014–2017 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/2.1/classes/class_menubutton.html