diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-06 19:31:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 19:31:22 +0100 |
commit | f5d281d55f1865945f573e9c11500ff1d73a0e27 (patch) | |
tree | 43e45169cc676f1e82c0a756e5c57d3f2a7535a4 /doc/classes | |
parent | a66df68143fef1d38a57fdd7f965e0e212d2f4a6 (diff) | |
parent | 0505b08a5607d2f488ec69cf2bd4e8b83bd97ede (diff) |
Merge pull request #50896 from HaSa1002/add-graphedit-drag-signals-4
Add `GraphEdit` drag notifications
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/GraphEdit.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml index c432410d3b..be6d9e07c3 100644 --- a/doc/classes/GraphEdit.xml +++ b/doc/classes/GraphEdit.xml @@ -109,6 +109,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="force_connection_drag_end"> + <return type="void" /> + <description> + Ends the creation of the current connection. In other words, if you are dragging a connection you can use this method to abort the process and remove the line that followed your cursor. + This is best used together with [signal connection_drag_begun] and [signal connection_drag_ended] to add custom behavior like node addition through shortcuts. + [b]Note:[/b] This method suppresses any other connection request signals apart from [signal connection_drag_ended]. + </description> + </method> <method name="get_connection_line"> <return type="PackedVector2Array" /> <argument index="0" name="from" type="Vector2" /> @@ -241,6 +249,19 @@ Emitted at the beginning of a GraphNode movement. </description> </signal> + <signal name="connection_drag_begun"> + <argument index="0" name="from" type="String" /> + <argument index="1" name="slot" type="String" /> + <argument index="2" name="is_output" type="bool" /> + <description> + Emitted at the beginning of a connection drag. + </description> + </signal> + <signal name="connection_drag_ended"> + <description> + Emitted at the end of a connection drag. + </description> + </signal> <signal name="connection_from_empty"> <argument index="0" name="to" type="StringName" /> <argument index="1" name="to_slot" type="int" /> |