From 75f1357ced3423d29efca6ff46eaf2ef3432bd73 Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Wed, 4 May 2022 06:31:53 +0100 Subject: Add read-only mode to AnimationTreeEditor plugins --- doc/classes/GraphEdit.xml | 3 +++ doc/classes/GraphNode.xml | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml index e5aa78971e..dc093acdcd 100644 --- a/doc/classes/GraphEdit.xml +++ b/doc/classes/GraphEdit.xml @@ -221,6 +221,9 @@ + + If [code]true[/code], the Arrange Nodes button is hidden. + If [code]true[/code], the lines between nodes will use antialiasing. diff --git a/doc/classes/GraphNode.xml b/doc/classes/GraphNode.xml index 009c329ee2..ebd4525b19 100644 --- a/doc/classes/GraphNode.xml +++ b/doc/classes/GraphNode.xml @@ -156,7 +156,7 @@ Sets properties of the slot with ID [param idx]. If [param enable_left]/[param enable_right], a port will appear and the slot will be able to be connected from this side. - [param type_left]/[param type_right] is an arbitrary type of the port. Only ports with the same type values can be connected. + [param type_left]/[param type_right] is an arbitrary type of the port. Only ports with the same type values can be connected and negative values will disallow all connections to be made via user inputs. [param color_left]/[param color_right] is the tint of the port's icon on this side. [param custom_left]/[param custom_right] 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. @@ -208,7 +208,7 @@ - Sets the left (input) type of the slot [param idx] to [param type_left]. + Sets the left (input) type of the slot [param idx] to [param type_left]. If the value is negative, all connections will be disallowed to be created via user inputs. @@ -216,7 +216,7 @@ - Sets the right (output) type of the slot [param idx] to [param type_right]. + Sets the right (output) type of the slot [param idx] to [param type_right]. If the value is negative, all connections will be disallowed to be created via user inputs. @@ -224,6 +224,9 @@ If [code]true[/code], the GraphNode is a comment node. + + If [code]true[/code], the user can drag the GraphNode. + Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead. @@ -239,6 +242,9 @@ If [code]true[/code], the user can resize the GraphNode. [b]Note:[/b] Dragging the handle will only emit the [signal resize_request] signal, the GraphNode needs to be resized manually. + + If [code]true[/code], the user can select the GraphNode. + If [code]true[/code], the GraphNode is selected. -- cgit v1.2.3