Add GraphNode 'selected' and 'unselected' signals, simplify GraphEdit

Backport of the fix from master to 3.x
This commit is contained in:
Maxim Kulkin
2022-08-24 10:57:17 -04:00
parent 4d4c6c187d
commit 466c912344
4 changed files with 60 additions and 41 deletions

View File

@@ -245,12 +245,22 @@
Emitted when the GraphNode is requested to be resized. Happens on dragging the resizer handle (see [member resizable]).
</description>
</signal>
<signal name="selected">
<description>
Emitted when the GraphNode is selected.
</description>
</signal>
<signal name="slot_updated">
<argument index="0" name="idx" type="int" />
<description>
Emitted when any GraphNode's slot is updated.
</description>
</signal>
<signal name="unselected">
<description>
Emitted when the GraphNode is unselected.
</description>
</signal>
</signals>
<constants>
<constant name="OVERLAY_DISABLED" value="0" enum="Overlay">