1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Drag&drop custom nodes from filesystem to visual shader

+ better loading of custom nodes
This commit is contained in:
Yuri Roubinsky
2019-10-02 23:26:56 +03:00
parent 893ebd3080
commit 1bafadb629
2 changed files with 36 additions and 5 deletions

View File

@@ -149,13 +149,14 @@ class VisualShaderEditor : public VBoxContainer {
Vector<AddOption> add_options;
int texture_node_option_idx;
int custom_node_option_idx;
List<String> keyword_list;
void _draw_color_over_button(Object *obj, Color p_color);
void _add_custom_node(const String &p_path);
void _add_texture_node(const String &p_path);
VisualShaderNode *_add_node(int p_idx, int p_op_idx = -1);
void _update_custom_nodes();
void _update_options_menu();
void _show_preview_text();
@@ -255,6 +256,7 @@ protected:
static void _bind_methods();
public:
void update_custom_nodes();
void add_plugin(const Ref<VisualShaderNodePlugin> &p_plugin);
void remove_plugin(const Ref<VisualShaderNodePlugin> &p_plugin);