private void DrawConnection() { GraphGUI.DrawConnectionArrow(Color.white, sourceEdgeCenter, entryEdgeCenter, sourceEdge, entryEdge, relativeBend, minBend); if (BoltState.Configuration.transitionsEndArrow) { GraphGUI.DrawConnectionArrow(Color.white, exitEdgeCenter, destinationEdgeCenter, exitEdge, destinationEdge, relativeBend, minBend); } else { GraphGUI.DrawConnection(Color.white, exitEdgeCenter, destinationEdgeCenter, exitEdge, destinationEdge, null, Vector2.zero, relativeBend, minBend); } }
protected override void DrawBackground() { base.DrawBackground(); if (isCreatingTransition) { var startRect = this.Widget(transitionSource).position; var end = mousePosition; Edge startEdge, endEdge; GraphGUI.GetConnectionEdge ( startRect.center, end, out startEdge, out endEdge ); var start = startRect.GetEdgeCenter(startEdge); GraphGUI.DrawConnectionArrow(Color.white, start, end, startEdge, endEdge); } }