From cce4b440910149a81f2c095527ead637f62adebc Mon Sep 17 00:00:00 2001 From: juliocp Date: Tue, 6 Oct 2020 11:11:29 -0300 Subject: [PATCH] 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 --- Scripts/Editor/NodeEditorAction.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index 9bcbdc3..cade4e0 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -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;