From 2c3c3b282987136efbc00df220d50794cee72bfc Mon Sep 17 00:00:00 2001 From: Anilforextra Date: Tue, 11 May 2021 13:02:47 +0545 Subject: -Added missing setters to GraphNode. -Improved various GraphNode documentation. --- doc/classes/GraphNode.xml | 83 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/classes/GraphNode.xml b/doc/classes/GraphNode.xml index aae3126c0f..82ba45f11a 100644 --- a/doc/classes/GraphNode.xml +++ b/doc/classes/GraphNode.xml @@ -40,7 +40,7 @@ - Returns the color of the input connection [code]idx[/code]. + Returns the [Color] of the input connection [code]idx[/code]. @@ -74,7 +74,7 @@ - Returns the color of the output connection [code]idx[/code]. + Returns the [Color] of the output connection [code]idx[/code]. @@ -117,7 +117,7 @@ - Returns the color set to [code]idx[/code] left (input) slot. + Returns the left (input) [Color] of the slot [code]idx[/code]. @@ -126,7 +126,7 @@ - Returns the color set to [code]idx[/code] right (output) slot. + Returns the right (output) [Color] of the slot [code]idx[/code]. @@ -135,7 +135,7 @@ - Returns the (integer) type of left (input) [code]idx[/code] slot. + Returns the left (input) type of the slot [code]idx[/code]. @@ -144,7 +144,7 @@ - Returns the (integer) type of right (output) [code]idx[/code] slot. + Returns the right (output) type of the slot [code]idx[/code]. @@ -153,7 +153,7 @@ - Returns [code]true[/code] if left (input) slot [code]idx[/code] is enabled, [code]false[/code] otherwise. + Returns [code]true[/code] if left (input) side of the slot [code]idx[/code] is enabled. @@ -162,7 +162,7 @@ - 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. @@ -204,6 +204,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. + + + + + + + + + + + Sets the [Color] of the left (input) side of the slot [code]idx[/code] to [code]color_left[/code]. + + + + + + + + + + + Sets the [Color] of the right (output) side of the slot [code]idx[/code] to [code]color_right[/code]. + + + + + + + + + + + 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. + + + + + + + + + + + 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. + + + + + + + + + + + Sets the left (input) type of the slot [code]idx[/code] to [code]type_left[/code]. + + + + + + + + + + + Sets the right (output) type of the slot [code]idx[/code] to [code]type_right[/code]. -- cgit v1.2.3