From 259418f8275371fc2f0bab6892caa4ef66b84240 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 5 Aug 2016 22:46:45 -0300 Subject: [PATCH] VisualScript can now execute visual scripts, but there is no debugger or profiler yet. --- core/script_language.h | 2 +- methods.py | 4 +- modules/gdscript/gd_editor.cpp | 11 +- modules/gdscript/gd_script.h | 2 +- modules/visual_script/register_types.cpp | 4 +- modules/visual_script/visual_script.cpp | 870 +++++++++++++++++- modules/visual_script/visual_script.h | 162 +++- .../visual_script_builtin_funcs.cpp | 660 +++++++++++-- .../visual_script_builtin_funcs.h | 3 +- .../visual_script/visual_script_editor.cpp | 35 +- .../visual_script_flow_control.cpp | 209 ++++- .../visual_script_flow_control.h | 15 +- .../visual_script_func_nodes.cpp | 533 ++++++++++- .../visual_script/visual_script_func_nodes.h | 19 +- modules/visual_script/visual_script_nodes.cpp | 762 +++++++++++++-- modules/visual_script/visual_script_nodes.h | 131 ++- scene/gui/container.cpp | 8 + scene/gui/control.cpp | 40 +- scene/gui/control.h | 4 + scene/gui/graph_edit.cpp | 6 + scene/gui/graph_node.cpp | 18 + scene/gui/graph_node.h | 5 + scene/gui/tab_container.cpp | 3 + scene/resources/style_box.cpp | 21 +- scene/resources/style_box.h | 4 + tools/editor/editor_settings.cpp | 7 + tools/editor/script_create_dialog.cpp | 16 +- 27 files changed, 3333 insertions(+), 221 deletions(-) diff --git a/core/script_language.h b/core/script_language.h index 499dbe14a7d..d1f82eff062 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -178,7 +178,7 @@ public: virtual void get_reserved_words(List *p_words) const=0; virtual void get_comment_delimiters(List *p_delimiters) const=0; virtual void get_string_delimiters(List *p_delimiters) const=0; - virtual String get_template(const String& p_class_name, const String& p_base_class_name) const=0; + virtual Ref