Function GraphNode.setSlot
Sets properties of the slot with ID idx
.
If enable_left
/right
, a port will appear and the slot will be able to be connected from this side.
type_left
/right
is an arbitrary type of the port. Only ports with the same type values can be connected.
color_left
/right
is the tint of the port's icon on this side.
custom_left
/right
is a custom texture for this side's port.
Note: This method only sets properties of the slot. To create the slot, add a Control
-derived child to the GraphNode.
void setSlot
(
const(long) idx,
const(bool) enable_left,
const(long) type_left,
const(Color) color_left,
const(bool) enable_right,
const(long) type_right,
const(Color) color_right,
Texture custom_left = Texture(godot_object(null), ),
Texture custom_right = Texture(godot_object(null), )
) nothrow @nogc;