Returns [code]true[/code] if right (output) slot [code]idx[/code] is enabled, [code]false[/code] otherwise.
Returns [code]true[/code] if right (output) side of the slot [code]idx[/code] is enabled.
</description>
</method>
<methodname="set_slot">
@ -177,6 +177,73 @@
[code]color_left[/code]/[code]right[/code] is the tint of the port's icon on this side.
[code]custom_left[/code]/[code]right[/code] is a custom texture for this side's port.
[b]Note:[/b] This method only sets properties of the slot. To create the slot, add a [Control]-derived child to the GraphNode.
Individual properties can be set using one of the [code]set_slot_*[/code] methods. You must enable at least one side of the slot to do so.
</description>
</method>
<methodname="set_slot_color_left">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="color_left"type="Color">
</argument>
<description>
Sets the [Color] of the left (input) side of the slot [code]idx[/code] to [code]color_left[/code].
</description>
</method>
<methodname="set_slot_color_right">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="color_right"type="Color">
</argument>
<description>
Sets the [Color] of the right (output) side of the slot [code]idx[/code] to [code]color_right[/code].
</description>
</method>
<methodname="set_slot_enabled_left">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="enable_left"type="bool">
</argument>
<description>
Toggles the left (input) side of the slot [code]idx[/code]. If [code]enable_left[/code] is [code]true[/code], a port will appear on the left side and the slot will be able to be connected from this side.
</description>
</method>
<methodname="set_slot_enabled_right">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="enable_right"type="bool">
</argument>
<description>
Toggles the right (output) side of the slot [code]idx[/code]. If [code]enable_right[/code] is [code]true[/code], a port will appear on the right side and the slot will be able to be connected from this side.
</description>
</method>
<methodname="set_slot_type_left">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="type_left"type="int">
</argument>
<description>
Sets the left (input) type of the slot [code]idx[/code] to [code]type_left[/code].
</description>
</method>
<methodname="set_slot_type_right">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="type_right"type="int">
</argument>
<description>
Sets the right (output) type of the slot [code]idx[/code] to [code]type_right[/code].