diff options
author | kobewi <kobewi4e@gmail.com> | 2022-08-10 04:12:31 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-26 03:19:01 +0200 |
commit | d764278f37e5f53a65664998f3150d36c73d3c4a (patch) | |
tree | 4ffa7d27d102d7d14a2df8c974f644c247608e2d /editor/plugins/shader_editor_plugin.h | |
parent | 9876382df8c0fcb7880ca20b053d1f2b2a358785 (diff) | |
download | redot-engine-d764278f37e5f53a65664998f3150d36c73d3c4a.tar.gz |
Add drag and drop support to shader list
Diffstat (limited to 'editor/plugins/shader_editor_plugin.h')
-rw-r--r-- | editor/plugins/shader_editor_plugin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.h b/editor/plugins/shader_editor_plugin.h index 0980cc4db2..afd38ef71a 100644 --- a/editor/plugins/shader_editor_plugin.h +++ b/editor/plugins/shader_editor_plugin.h @@ -250,6 +250,14 @@ class ShaderEditorPlugin : public EditorPlugin { void _shader_created(Ref<Shader> p_shader); void _shader_include_created(Ref<ShaderInclude> p_shader_inc); void _update_shader_list_status(); + void _move_shader_tab(int p_from, int p_to); + + Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); + bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const; + void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from); + +protected: + static void _bind_methods(); public: virtual void edit(Object *p_object) override; |