diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-09-07 11:59:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 11:59:46 -0300 |
commit | 93aa158b5e1b3b11c3482834504e791c3898baf0 (patch) | |
tree | dd0de472b6a31e4878a765025990d08977619320 /editor/editor_data.h | |
parent | 88c3e3180a52b2460429dfc031555392394fd97d (diff) | |
parent | 4bd7700e89f4476a3b2c76e7bed4263a111b3c09 (diff) |
Merge pull request #52277 from groud/implement_array_property_hint
Implement properties arrays in the Inspector.
Diffstat (limited to 'editor/editor_data.h')
-rw-r--r-- | editor/editor_data.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_data.h b/editor/editor_data.h index df6ba9d0c9..9184ddcf39 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -133,6 +133,7 @@ private: List<PropertyData> clipboard; UndoRedo undo_redo; Vector<Callable> undo_redo_callbacks; + Map<StringName, Callable> move_element_functions; void _cleanup_history(); @@ -167,10 +168,14 @@ public: EditorPlugin *get_editor_plugin(int p_idx); UndoRedo &get_undo_redo(); - void add_undo_redo_inspector_hook_callback(Callable p_callable); // Callbacks should have 4 args: (Object* undo_redo, Object *modified_object, String property, Variant new_value) + void add_undo_redo_inspector_hook_callback(Callable p_callable); // Callbacks should have this signature: void (Object* undo_redo, Object *modified_object, String property, Variant new_value) void remove_undo_redo_inspector_hook_callback(Callable p_callable); const Vector<Callable> get_undo_redo_inspector_hook_callback(); + void add_move_array_element_function(const StringName &p_class, Callable p_callable); // Function should have this signature: void (Object* undo_redo, Object *modified_object, String array_prefix, int element_index, int new_position) + void remove_move_array_element_function(const StringName &p_class); + Callable get_move_array_element_function(const StringName &p_class) const; + void save_editor_global_states(); void restore_editor_global_states(); |