public void ChangeCurve(FloatCurve curveToEdit) { Utils.Log($"Started editing curve {curveToEdit.ToString()}", LogType.UI); curve = curveToEdit; points = GraphUtils.FloatCurveToPoints(curveToEdit); UpdateCurve(out curve); showWindow = true; }
// public bool Compare(FloatCurve toCompare) { if (GraphUtils.FloatCurveToPoints(toCompare) != points) { return(false); } return(true); }
public void ChangeCurve(FloatCurve curveToEdit, UIModifierWindow modWin, string tag) { modifier = modWin; modifierTag = tag; Utils.Log($"Started editing curve {curveToEdit.ToString()}", LogType.UI); curve = curveToEdit; points = GraphUtils.FloatCurveToPoints(curveToEdit); UpdateCurve(out curve); showWindow = true; }
public UICurveEditWindow(FloatCurve curveToEdit, bool show) : base(show) { Utils.Log($"Started editing curve {curveToEdit.ToString()}"); WindowPosition = new Rect(Screen.width / 2, Screen.height / 2, 678, 600); curve = curveToEdit; points = GraphUtils.FloatCurveToPoints(curveToEdit); UpdateCurve(out curve); }
public UICurveEditWindow(FloatCurve curveToEdit, UIModifierWindow modWin, string tag, bool show) : base(show) { modifier = modWin; modifierTag = tag; Utils.Log($"Started editing curve {curveToEdit.ToString()}", LogType.UI); WindowPosition = new Rect(Screen.width / 2, Screen.height / 2, 678, 600); curve = curveToEdit; points = GraphUtils.FloatCurveToPoints(curveToEdit); UpdateCurve(out curve); }