summaryrefslogtreecommitdiff
path: root/modules/visual_script/visual_script_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-09-04 10:34:40 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-09-04 10:34:40 -0300
commit9167cd45bb3fc835134f231778051bab470105fe (patch)
tree9a8cd243204e2d76d46fdca3e30f5186ee0138b7 /modules/visual_script/visual_script_editor.cpp
parent77cb836fc4110a19bdba1d74928a6343fbca7f05 (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.cpp4
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;