1
0
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:
Guilherme Felipe
2018-06-22 23:51:47 -03:00
parent 62f2a8aadb
commit d1f5deabd8
4 changed files with 30 additions and 4 deletions

View File

@@ -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);