public UICurveEditWindow OpenCurveEditor(FloatCurve toEdit) { if (curveEditWindow != null) { curveEditWindow.ChangeCurve(toEdit); } else { curveEditWindow = new UICurveEditWindow(toEdit, true); } return(curveEditWindow); }
public UICurveEditWindow OpenCurveEditor(FloatCurve toEdit, CurveUpdateFunction curveFun) { if (curveEditWindow != null) { curveEditWindow.ChangeCurve(toEdit, curveFun); } else { curveEditWindow = new UICurveEditWindow(toEdit, curveFun, true); } return(curveEditWindow); }
public UICurveEditWindow OpenCurveEditor(FloatCurve toEdit, UIModifierWindow modWin, string tag) { currentModWinForCurve = modWin; currentCurveTag = tag; if (curveEditWindow != null) { curveEditWindow.ChangeCurve(toEdit, modWin, tag); } else { curveEditWindow = new UICurveEditWindow(toEdit, modWin, tag, true); } return(curveEditWindow); }
/// <summary> /// Spawns the float editor panel to edit a float /// </summary> /// <param name="toEdit"></param> protected void EditCurve(FloatCurve toEdit, string tag) { Utils.Log($"Started editing curve {toEdit.Curve.ToString()}", LogType.UI); curveEditor = WaterfallUI.Instance.OpenCurveEditor(toEdit, this, tag); }
/// <summary> /// Spawns the float editor panel to edit a float /// </summary> /// <param name="toEdit"></param> protected void EditCurve(FloatCurve toEdit, CurveUpdateFunction updateFunction) { Utils.Log($"Started editing curve {toEdit.Curve.ToString()}", LogType.UI); curveEditor = WaterfallUI.Instance.OpenCurveEditor(toEdit, updateFunction); }
/// <summary> /// Spawns the float editor panel to edit a float /// </summary> /// <param name="toEdit"></param> protected void EditCurve(FloatCurve toEdit) { Utils.Log($"Started editing curve {toEdit.Curve.ToString()}"); curveEditor = WaterfallUI.Instance.OpenCurveEditor(toEdit); }