1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

Update NodeEditorAction.cs

I made these variables public to be able to work with more information from GraphEditor. They are only Boolean and do not pose any danger.

- IsDraggingPort:
- IsHoveringPort
- IsHoveringNode
- IsHoveringReroute
This commit is contained in:
juliocp 2020-10-06 11:11:29 -03:00
parent 7c301c88a7
commit cce4b44091

View File

@ -14,10 +14,11 @@ namespace XNodeEditor {
public static XNode.Node[] copyBuffer = null;
private bool IsDraggingPort { get { return draggedOutput != null; } }
private bool IsHoveringPort { get { return hoveredPort != null; } }
private bool IsHoveringNode { get { return hoveredNode != null; } }
private bool IsHoveringReroute { get { return hoveredReroute.port != null; } }
public bool IsDraggingPort { get { return draggedOutput != null; } }
public bool IsHoveringPort { get { return hoveredPort != null; } }
public bool IsHoveringNode { get { return hoveredNode != null; } }
public bool IsHoveringReroute { get { return hoveredReroute.port != null; } }
private XNode.Node hoveredNode = null;
[NonSerialized] public XNode.NodePort hoveredPort = null;
[NonSerialized] private XNode.NodePort draggedOutput = null;