mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
42 lines
1.2 KiB
ReStructuredText
42 lines
1.2 KiB
ReStructuredText
.. _class_MenuButton:
|
|
|
|
MenuButton
|
|
==========
|
|
|
|
**Inherits:** :ref:`Button<class_button>` **<** :ref:`BaseButton<class_basebutton>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Special button that brings up a :ref:`PopupMenu<class_popupmenu>` when clicked.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------------+-----------------------------------------------------------+
|
|
| :ref:`PopupMenu<class_popupmenu>` | :ref:`get_popup<class_MenuButton_get_popup>` **(** **)** |
|
|
+------------------------------------+-----------------------------------------------------------+
|
|
|
|
Signals
|
|
-------
|
|
|
|
- **about_to_show** **(** **)**
|
|
|
|
Description
|
|
-----------
|
|
|
|
Special button that brings up a :ref:`PopupMenu<class_popupmenu>` when clicked. That's pretty much all it does, as it's just a helper class when bulding GUIs.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_MenuButton_get_popup:
|
|
|
|
- :ref:`PopupMenu<class_popupmenu>` **get_popup** **(** **)**
|
|
|
|
Return the :ref:`PopupMenu<class_popupmenu>` contained in this button.
|
|
|
|
|