From 9167cd45bb3fc835134f231778051bab470105fe Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 4 Sep 2016 10:34:40 -0300 Subject: Added expression nodes to visual script, please test. --- modules/visual_script/visual_script_editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/visual_script/visual_script_editor.cpp') diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index ccd8635930..14708799af 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -3,6 +3,7 @@ #include "visual_script_nodes.h" #include "visual_script_flow_control.h" #include "visual_script_func_nodes.h" +#include "visual_script_expression.h" #include "os/input.h" #include "tools/editor/editor_resource_preview.h" #include "os/keyboard.h" @@ -505,6 +506,9 @@ void VisualScriptEditor::_update_graph(int p_only_id) { Label *text = memnew( Label ); text->set_text(node->get_text()); gnode->add_child(text); + if (node->cast_to()) { + text->add_font_override("font",get_font("source","EditorFonts")); + } if (node->cast_to()) { Ref vsc=node; -- cgit v1.2.3