diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-03 17:33:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 17:33:11 +0100 |
commit | f00ba792b3b338ebd551ceeba16cb7a2b73dd13e (patch) | |
tree | a0506cbbc63676bc5dbbfa1844df37d3f8ccf167 /scene/gui/popup_menu.h | |
parent | a2803f3d869d92666e59b5750ec65af54c7ac805 (diff) | |
parent | 4554892223a3e3c4b9bd5279d163a13f74a2e601 (diff) |
Merge pull request #54533 from rafallus/menubutton_items
Diffstat (limited to 'scene/gui/popup_menu.h')
-rw-r--r-- | scene/gui/popup_menu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scene/gui/popup_menu.h b/scene/gui/popup_menu.h index 428076c6da..80874ca1e0 100644 --- a/scene/gui/popup_menu.h +++ b/scene/gui/popup_menu.h @@ -117,9 +117,6 @@ class PopupMenu : public Popup { bool hide_on_multistate_item_selection = false; Vector2 moved; - Array _get_items() const; - void _set_items(const Array &p_items); - Map<Ref<Shortcut>, int> shortcut_refcount; void _ref_shortcut(Ref<Shortcut> p_sc); @@ -141,6 +138,9 @@ class PopupMenu : public Popup { protected: void _notification(int p_what); + bool _set(const StringName &p_name, const Variant &p_value); + bool _get(const StringName &p_name, Variant &r_ret) const; + void _get_property_list(List<PropertyInfo> *p_list) const; static void _bind_methods(); public: @@ -213,6 +213,8 @@ public: int get_item_state(int p_idx) const; int get_current_index() const; + + void set_item_count(int p_count); int get_item_count() const; bool activate_item_by_event(const Ref<InputEvent> &p_event, bool p_for_global_only = false); |