diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-09-04 10:34:40 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-09-04 10:34:40 -0300 |
commit | 9167cd45bb3fc835134f231778051bab470105fe (patch) | |
tree | 9a8cd243204e2d76d46fdca3e30f5186ee0138b7 /modules/visual_script/visual_script_editor.cpp | |
parent | 77cb836fc4110a19bdba1d74928a6343fbca7f05 (diff) |
Added expression nodes to visual script, please test.
Diffstat (limited to 'modules/visual_script/visual_script_editor.cpp')
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<VisualScriptExpression>()) { + text->add_font_override("font",get_font("source","EditorFonts")); + } if (node->cast_to<VisualScriptComment>()) { Ref<VisualScriptComment> vsc=node; |