You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Opens the menu with the same parent on mouse focus
This commit is contained in:
@@ -43,7 +43,6 @@ class MenuButton : public Button {
|
||||
bool clicked;
|
||||
bool disable_shortcuts;
|
||||
PopupMenu *popup;
|
||||
virtual void pressed();
|
||||
|
||||
void _unhandled_key_input(Ref<InputEvent> p_event);
|
||||
Array _get_items() const;
|
||||
@@ -55,6 +54,8 @@ protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
virtual void pressed();
|
||||
|
||||
PopupMenu *get_popup() const;
|
||||
void set_disable_shortcuts(bool p_disabled);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user