Implement inspector property array for PopupMenu and MenuButton
This commit is contained in:
parent
fe6c65a1a8
commit
4554892223
6 changed files with 233 additions and 87 deletions
|
|
@ -44,15 +44,15 @@ class MenuButton : public Button {
|
|||
|
||||
Vector2i mouse_pos_adjusted;
|
||||
|
||||
Array _get_items() const;
|
||||
void _set_items(const Array &p_items);
|
||||
|
||||
virtual void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
void _popup_visibility_changed(bool p_visible);
|
||||
|
||||
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();
|
||||
virtual void unhandled_key_input(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
|
|
@ -64,6 +64,9 @@ public:
|
|||
bool is_switch_on_hover();
|
||||
void set_disable_shortcuts(bool p_disabled);
|
||||
|
||||
void set_item_count(int p_count);
|
||||
int get_item_count() const;
|
||||
|
||||
MenuButton();
|
||||
~MenuButton();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue