public void ResetHighlight() { if (selected) { highlight = PWLinkHighlight.Selected; } else { highlight = PWLinkHighlight.None; } }
public PWLink(int dWin, int dAttr, string dName, string dCName, int dIndex, int lWin, int lAttr, string lName, string lCName, int lIndex, Color c, PWLinkType lt) { distantNodeId = dWin; distantAnchorId = dAttr; distantName = dName; distantClassAQName = dCName; distantIndex = dIndex; localAnchorId = lAttr; localNodeId = lWin; localClassAQName = lCName; localIndex = lIndex; localName = lName; color = (SerializableColor)c; linkHighlight = PWLinkHighlight.None; linkType = lt; }
void DrawSelectedBezier(Vector3 startPos, Vector3 endPos, Vector3 startTan, Vector3 endTan, PWColorSchemeName colorSchemeName, int width, PWLinkHighlight highlight) { switch (highlight) { case PWLinkHighlight.Selected: Handles.DrawBezier(startPos, endPos, startTan, endTan, PWColorTheme.selectedColor, null, width + 3); break; case PWLinkHighlight.Delete: case PWLinkHighlight.DeleteAndReset: Handles.DrawBezier(startPos, endPos, startTan, endTan, PWColorTheme.deletedColor, null, width + 2); break; } Color c = PWColorTheme.GetLinkColor(colorSchemeName); Handles.DrawBezier(startPos, endPos, startTan, endTan, c, null, width); }