Exemplo n.º 1
0
 public UICurveEditWindow OpenCurveEditor(FloatCurve toEdit)
 {
     if (curveEditWindow != null)
     {
         curveEditWindow.ChangeCurve(toEdit);
     }
     else
     {
         curveEditWindow = new UICurveEditWindow(toEdit, true);
     }
     return(curveEditWindow);
 }
Exemplo n.º 2
0
 public UICurveEditWindow OpenCurveEditor(FloatCurve toEdit, CurveUpdateFunction curveFun)
 {
     if (curveEditWindow != null)
     {
         curveEditWindow.ChangeCurve(toEdit, curveFun);
     }
     else
     {
         curveEditWindow = new UICurveEditWindow(toEdit, curveFun, true);
     }
     return(curveEditWindow);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 5
0
 /// <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);
 }
Exemplo n.º 6
0
 /// <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);
 }