diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-16 17:37:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 17:37:12 +0200 |
commit | 8e7b17429e9daadb9cc1db2b9dc605a6c228192e (patch) | |
tree | 7d678a8c26abcab48cc83a081fb9d0a516e4f054 /scene/gui/graph_node.h | |
parent | c3002c09554b4a398cde09be3788dda3bd5e0503 (diff) | |
parent | 2c3c3b282987136efbc00df220d50794cee72bfc (diff) | |
download | redot-engine-8e7b17429e9daadb9cc1db2b9dc605a6c228192e.tar.gz |
Merge pull request #48650 from AnilBK/graph-node-setters
Added GraphNode missing setters.
Diffstat (limited to 'scene/gui/graph_node.h')
-rw-r--r-- | scene/gui/graph_node.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scene/gui/graph_node.h b/scene/gui/graph_node.h index 1bc54dddb7..c70f616b47 100644 --- a/scene/gui/graph_node.h +++ b/scene/gui/graph_node.h @@ -113,11 +113,23 @@ public: void set_slot(int p_idx, bool p_enable_left, int p_type_left, const Color &p_color_left, bool p_enable_right, int p_type_right, const Color &p_color_right, const Ref<Texture2D> &p_custom_left = Ref<Texture2D>(), const Ref<Texture2D> &p_custom_right = Ref<Texture2D>()); void clear_slot(int p_idx); void clear_all_slots(); + bool is_slot_enabled_left(int p_idx) const; + void set_slot_enabled_left(int p_idx, bool p_enable_left); + + void set_slot_type_left(int p_idx, int p_type_left); int get_slot_type_left(int p_idx) const; + + void set_slot_color_left(int p_idx, const Color &p_color_left); Color get_slot_color_left(int p_idx) const; + bool is_slot_enabled_right(int p_idx) const; + void set_slot_enabled_right(int p_idx, bool p_enable_right); + + void set_slot_type_right(int p_idx, int p_type_right); int get_slot_type_right(int p_idx) const; + + void set_slot_color_right(int p_idx, const Color &p_color_right); Color get_slot_color_right(int p_idx) const; void set_title(const String &p_title); |