mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix setting of PopupMenu item IDs in editor
This commit is contained in:
parent
87e42e4f66
commit
ae646261e3
@ -157,7 +157,7 @@ public:
|
||||
virtual void set_item_enabled(int p_idx, int p_enabled) { pp->set_item_disabled(p_idx, !p_enabled); }
|
||||
virtual bool is_item_enabled(int p_idx) const { return !pp->is_item_disabled(p_idx); }
|
||||
|
||||
virtual void set_item_id(int p_idx, int p_id) { pp->set_item_id(p_idx, p_idx); }
|
||||
virtual void set_item_id(int p_idx, int p_id) { pp->set_item_id(p_idx, p_id); }
|
||||
virtual int get_item_id(int p_idx) const { return pp->get_item_id(p_idx); }
|
||||
|
||||
virtual void set_item_separator(int p_idx, bool p_separator) { pp->set_item_as_separator(p_idx, p_separator); }
|
||||
|
Loading…
Reference in New Issue
Block a user