From d8af6330e57b98f370ed56d891a6a6952957cfec Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 3 Aug 2016 11:28:20 -0300 Subject: More progress on visual script editing --- modules/visual_script/visual_script_func_nodes.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (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 d1201541b..3d8f953a2 100644 --- a/modules/visual_script/visual_script_func_nodes.h +++ b/modules/visual_script/visual_script_func_nodes.h @@ -12,11 +12,13 @@ public: CALL_MODE_SELF, CALL_MODE_NODE_PATH, CALL_MODE_INSTANCE, + CALL_MODE_BASIC_TYPE, }; private: CallMode call_mode; StringName base_type; + Variant::Type basic_type; NodePath base_path; StringName function; int use_default_args; @@ -49,6 +51,9 @@ public: virtual String get_caption() const; virtual String get_text() const; + void set_basic_type(Variant::Type p_type); + Variant::Type get_basic_type() const; + void set_base_type(const StringName& p_type); StringName get_base_type() const; @@ -80,10 +85,14 @@ public: CALL_MODE_SELF, CALL_MODE_NODE_PATH, CALL_MODE_INSTANCE, + CALL_MODE_BASIC_TYPE, + + }; private: CallMode call_mode; + Variant::Type basic_type; StringName base_type; NodePath base_path; StringName property; @@ -121,6 +130,9 @@ public: void set_base_type(const StringName& p_type); StringName get_base_type() const; + void set_basic_type(Variant::Type p_type); + Variant::Type get_basic_type() const; + void set_property(const StringName& p_type); StringName get_property() const; @@ -152,10 +164,13 @@ public: CALL_MODE_SELF, CALL_MODE_NODE_PATH, CALL_MODE_INSTANCE, + CALL_MODE_BASIC_TYPE + }; private: CallMode call_mode; + Variant::Type basic_type; StringName base_type; NodePath base_path; StringName property; @@ -192,6 +207,9 @@ public: void set_base_type(const StringName& p_type); StringName get_base_type() const; + void set_basic_type(Variant::Type p_type); + Variant::Type get_basic_type() const; + void set_property(const StringName& p_type); StringName get_property() const; -- cgit v1.2.3-70-g09d2