diff options
author | K. S. Ernest (iFire) Lee <fire@users.noreply.github.com> | 2021-08-22 01:33:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 01:33:58 -0700 |
commit | 8cae1294b8b61fd4fc97436eb357c82b817f1d3f (patch) | |
tree | d0fbb173499c58f85d233edaf3b8ec27d6a116d5 /doc/classes | |
parent | fb94b2e656a48e66cb908a95df97c9e66024a935 (diff) | |
parent | e9ef6f9815948cb0cad9efdb399f0a4a15192284 (diff) |
Merge pull request #51952 from Jummit/refactor-graphedit-connections
Refactor GraphEdit connections
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/GraphEdit.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml index 907cf8587d..a3759a51dd 100644 --- a/doc/classes/GraphEdit.xml +++ b/doc/classes/GraphEdit.xml @@ -10,6 +10,14 @@ <tutorials> </tutorials> <methods> + <method name="_get_connection_line" qualifiers="virtual"> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> + <description> + Virtual method which can be overridden to customize how connections are drawn. + </description> + </method> <method name="add_valid_connection_type"> <return type="void" /> <argument index="0" name="from_type" type="int" /> @@ -64,6 +72,14 @@ Removes the connection between the [code]from_port[/code] slot of the [code]from[/code] GraphNode and the [code]to_port[/code] slot of the [code]to[/code] GraphNode. If the connection does not exist, no connection is removed. </description> </method> + <method name="get_connection_line"> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> + <description> + Returns the points which would make up a connection between [code]from[/code] and [code]to[/code]. + </description> + </method> <method name="get_connection_list" qualifiers="const"> <return type="Array" /> <description> |