summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_node.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-08 11:49:46 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-08 11:49:46 +0100
commitdf29fc91edabf712d5e597d0ddd4cf015d99722e (patch)
tree911b27e70f56eef0230b7724a6f6423e3a10a051 /scene/gui/graph_node.h
parent049da90fb44ace9629eaf7a0448eae2228bb1fba (diff)
parent631d722674588bfca4f833c3534872b0c3805472 (diff)
downloadredot-engine-df29fc91edabf712d5e597d0ddd4cf015d99722e.tar.gz
Merge pull request #82669 from 4d49/graph-node-slot-custom-icon
Add `set_slot_custom_icon` and `get_slot_custom_icon` to GraphNode
Diffstat (limited to 'scene/gui/graph_node.h')
-rw-r--r--scene/gui/graph_node.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/graph_node.h b/scene/gui/graph_node.h
index 04ca9e7cb4..a0610b37fb 100644
--- a/scene/gui/graph_node.h
+++ b/scene/gui/graph_node.h
@@ -129,6 +129,9 @@ public:
void set_slot_color_left(int p_slot_index, const Color &p_color);
Color get_slot_color_left(int p_slot_index) const;
+ void set_slot_custom_icon_left(int p_slot_index, const Ref<Texture2D> &p_custom_icon);
+ Ref<Texture2D> get_slot_custom_icon_left(int p_slot_index) const;
+
bool is_slot_enabled_right(int p_slot_index) const;
void set_slot_enabled_right(int p_slot_index, bool p_enable);
@@ -138,6 +141,9 @@ public:
void set_slot_color_right(int p_slot_index, const Color &p_color);
Color get_slot_color_right(int p_slot_index) const;
+ void set_slot_custom_icon_right(int p_slot_index, const Ref<Texture2D> &p_custom_icon);
+ Ref<Texture2D> get_slot_custom_icon_right(int p_slot_index) const;
+
bool is_slot_draw_stylebox(int p_slot_index) const;
void set_slot_draw_stylebox(int p_slot_index, bool p_enable);