Add set_slot_custom_icon and get_slot_custom_icon to GraphNode

This commit is contained in:
Mansur Isaev
2023-10-02 09:40:21 +04:00
committed by Rémi Verschelde
parent 89cc635c05
commit 631d722674
3 changed files with 84 additions and 0 deletions

View File

@@ -116,6 +116,20 @@
Returns the right (output) [Color] of the slot with the given [param slot_index].
</description>
</method>
<method name="get_slot_custom_icon_left" qualifiers="const">
<return type="Texture2D" />
<param index="0" name="slot_index" type="int" />
<description>
Returns the left (input) custom [Texture2D] of the slot with the given [param slot_index].
</description>
</method>
<method name="get_slot_custom_icon_right" qualifiers="const">
<return type="Texture2D" />
<param index="0" name="slot_index" type="int" />
<description>
Returns the right (output) custom [Texture2D] of the slot with the given [param slot_index].
</description>
</method>
<method name="get_slot_type_left" qualifiers="const">
<return type="int" />
<param index="0" name="slot_index" type="int" />
@@ -195,6 +209,22 @@
Sets the [Color] of the right (output) side of the slot with the given [param slot_index] to [param color].
</description>
</method>
<method name="set_slot_custom_icon_left">
<return type="void" />
<param index="0" name="slot_index" type="int" />
<param index="1" name="custom_icon" type="Texture2D" />
<description>
Sets the custom [Texture2D] of the left (input) side of the slot with the given [param slot_index] to [param custom_icon].
</description>
</method>
<method name="set_slot_custom_icon_right">
<return type="void" />
<param index="0" name="slot_index" type="int" />
<param index="1" name="custom_icon" type="Texture2D" />
<description>
Sets the custom [Texture2D] of the right (output) side of the slot with the given [param slot_index] to [param custom_icon].
</description>
</method>
<method name="set_slot_draw_stylebox">
<return type="void" />
<param index="0" name="slot_index" type="int" />