W3cubDocs

/Godot 3.0

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 ( ) const
void set_disable_shortcuts ( bool disabled )

Signals

about_to_show ( )

Emitted when PopupMenu of this MenuButton is 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 ( ) const

Return the PopupMenu contained in this button.

void set_disable_shortcuts ( bool disabled )

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