public NodeEvent(EventType type, NodeGUI node, Vector2 localMousePos, ConnectionPointData point) { this.eventType = type; this.eventSourceNode = node; this.point = point; this.globalMousePosition = new Vector2(localMousePos.x + node.GetX(), localMousePos.y + node.GetY()); }
public OnNodeEvent(EventType type, NodeGUI node, Vector2 localMousePos, string conPointId) { this.eventType = type; this.eventSourceNode = node; this.conPointId = conPointId; this.globalMousePosition = new Vector2(localMousePos.x + node.GetX(), localMousePos.y + node.GetY()); }
public void DuplicateNode(NodeGUI node) { var newNode = node.Duplicate( node.GetX() + 10f, node.GetY() + 10f ); AddNodeGUI(newNode); }