From 112e28cf45e5af9f5a35f8d176a94c2bf70f0590 Mon Sep 17 00:00:00 2001 From: tabuto74 <32508985+tabuto74@users.noreply.github.com> Date: Mon, 13 Apr 2020 11:16:18 +0200 Subject: [PATCH 1/3] Some properties made public --- Scripts/Editor/NodeEditorAction.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index 8021a16f..b3e2f260 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -14,10 +14,10 @@ public enum NodeActivity { Idle, HoldNode, DragNode, HoldGrid, DragGrid } 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; @@ -535,4 +535,4 @@ public void AutoConnect(XNode.Node node) { autoConnectOutput = null; } } -} \ No newline at end of file +} From 27d75202b1d06d14e599b898caeb06cfce645a09 Mon Sep 17 00:00:00 2001 From: tabuto74 <32508985+tabuto74@users.noreply.github.com> Date: Mon, 13 Apr 2020 11:28:28 +0200 Subject: [PATCH 2/3] Update NodeEditorAction.cs --- Scripts/Editor/NodeEditorAction.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index b3e2f260..37f52c68 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -18,6 +18,11 @@ public enum NodeActivity { Idle, HoldNode, DragNode, HoldGrid, DragGrid } public bool IsHoveringPort { get { return hoveredPort != null; } } public bool IsHoveringNode { get { return hoveredNode != null; } } public bool IsHoveringReroute { get { return hoveredReroute.port != null; } } + public XNode.NodePort GetDraggingPort { get { return draggedOutput; } } + public XNode.NodePort GetHoveringPort { get { return hoveredPort; } } + public XNode.Node GetHoveringNode { get { return hoveredNode; } } + public XNode.NodePort GetHoveringReroute { get { return hoveredReroute.port; } } + private XNode.Node hoveredNode = null; [NonSerialized] public XNode.NodePort hoveredPort = null; [NonSerialized] private XNode.NodePort draggedOutput = null; From eee9619fa5c64cc148874a6491bd1ce9ec909830 Mon Sep 17 00:00:00 2001 From: tabuto74 <32508985+tabuto74@users.noreply.github.com> Date: Mon, 13 Apr 2020 11:34:10 +0200 Subject: [PATCH 3/3] Update NodeEditorAction.cs --- Scripts/Editor/NodeEditorAction.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index 37f52c68..bb9c143a 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -18,10 +18,10 @@ public enum NodeActivity { Idle, HoldNode, DragNode, HoldGrid, DragGrid } public bool IsHoveringPort { get { return hoveredPort != null; } } public bool IsHoveringNode { get { return hoveredNode != null; } } public bool IsHoveringReroute { get { return hoveredReroute.port != null; } } - public XNode.NodePort GetDraggingPort { get { return draggedOutput; } } - public XNode.NodePort GetHoveringPort { get { return hoveredPort; } } - public XNode.Node GetHoveringNode { get { return hoveredNode; } } - public XNode.NodePort GetHoveringReroute { get { return hoveredReroute.port; } } + public XNode.NodePort DraggingPort { get { return draggedOutput; } } + public XNode.NodePort HoveringPort { get { return hoveredPort; } } + public XNode.Node HoveringNode { get { return hoveredNode; } } + public XNode.NodePort HoveringReroute { get { return hoveredReroute.port; } } private XNode.Node hoveredNode = null; [NonSerialized] public XNode.NodePort hoveredPort = null;