From b77200728e7f2b2dd446a9717c83a20c9aac0ce4 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 7 Aug 2016 19:22:33 -0300 Subject: -Added yield nodes to visual script -Added input selection nodes to visual script -Added script create icon for those who miss it, will only appear when it can be used. --- modules/visual_script/visual_script_func_nodes.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/visual_script/visual_script_func_nodes.h') diff --git a/modules/visual_script/visual_script_func_nodes.h b/modules/visual_script/visual_script_func_nodes.h index 7ba573564..2ccc61242 100644 --- a/modules/visual_script/visual_script_func_nodes.h +++ b/modules/visual_script/visual_script_func_nodes.h @@ -93,12 +93,13 @@ public: private: CallMode call_mode; - Variant::Type basic_type; + Variant::Type basic_type; StringName base_type; NodePath base_path; StringName property; bool use_builtin_value; Variant builtin_value; + InputEvent::Type event_type; Node *_get_base_node() const; StringName _get_base_type() const; @@ -136,6 +137,9 @@ public: void set_basic_type(Variant::Type p_type); Variant::Type get_basic_type() const; + void set_event_type(InputEvent::Type p_type); + InputEvent::Type get_event_type() const; + void set_property(const StringName& p_type); StringName get_property() const; @@ -177,6 +181,7 @@ private: StringName base_type; NodePath base_path; StringName property; + InputEvent::Type event_type; void _update_base_type(); Node *_get_base_node() const; @@ -214,6 +219,9 @@ public: void set_basic_type(Variant::Type p_type); Variant::Type get_basic_type() const; + void set_event_type(InputEvent::Type p_type); + InputEvent::Type get_event_type() const; + void set_property(const StringName& p_type); StringName get_property() const; -- cgit v1.2.3-70-g09d2