Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some properties made public #244

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Scripts/Editor/NodeEditorAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ 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; } }
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;
[NonSerialized] private XNode.NodePort draggedOutput = null;
Expand Down Expand Up @@ -535,4 +540,4 @@ public void AutoConnect(XNode.Node node) {
autoConnectOutput = null;
}
}
}
}