mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Added expression nodes to visual script, please test.
This commit is contained in:
parent
77cb836fc4
commit
9167cd45bb
6 changed files with 1727 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue