コード例 #1
0
    public void Edit(Lanotalium.Chart.LanotaCameraRot Rot)
    {
        ResetGizmoMotionEditor();
        _Mode               = Lanotalium.Editor.GizmoMotionMode.Rotation;
        EditMode            = true;
        _RotReference       = Rot;
        UseType8            = false;
        UseType10           = false;
        UseType11           = false;
        UseType13           = true;
        UseMove             = false;
        UseRotate           = false;
        UseInput            = true;
        TimeStartInput.text = Rot.Time.ToString();
        _TimeToCreate       = Rot.Time;
        SetStartStatusToText();
        DurationInput.text = Rot.Duration.ToString();
        TimeEndInput.text  = (_TimeToCreate + Rot.Duration).ToString();
        EaseInput.text     = Rot.cfmi.ToString();
        float BeginRotation;

        if (!float.TryParse(BeginRotationText.text, out BeginRotation))
        {
            return;
        }
        RotationInput.text = (BeginRotation + Rot.ctp).ToString();
        gameObject.SetActive(true);
    }
コード例 #2
0
    public void Edit(Lanotalium.Chart.LanotaCameraY Ver)
    {
        ResetGizmoMotionEditor();
        _Mode               = Lanotalium.Editor.GizmoMotionMode.Vertical;
        EditMode            = true;
        _VerReference       = Ver;
        UseType8            = false;
        UseType10           = true;
        UseType11           = false;
        UseType13           = false;
        UseMove             = false;
        UseRotate           = false;
        UseInput            = true;
        TimeStartInput.text = Ver.Time.ToString();
        _TimeToCreate       = Ver.Time;
        SetStartStatusToText();
        DurationInput.text = Ver.Duration.ToString();
        TimeEndInput.text  = (_TimeToCreate + Ver.Duration).ToString();
        EaseInput.text     = Ver.cfmi.ToString();
        float BeginHeight;

        if (!float.TryParse(BeginHeightText.text, out BeginHeight))
        {
            return;
        }
        HeightInput.text = (BeginHeight + Ver.ctp).ToString();
        gameObject.SetActive(true);
    }
コード例 #3
0
 public void Edit(Lanotalium.Chart.LanotaCameraXZ Hor)
 {
     ResetGizmoMotionEditor();
     _Mode         = Lanotalium.Editor.GizmoMotionMode.Horizontal;
     EditMode      = true;
     _HorReference = Hor;
     if (Hor.Type == 8)
     {
         UseType8 = true;
     }
     else
     {
         UseType8 = false;
     }
     UseType10 = false;
     if (Hor.Type == 11)
     {
         UseType11 = true;
     }
     else
     {
         UseType11 = false;
     }
     UseType13           = false;
     UseMove             = false;
     UseRotate           = false;
     UseInput            = true;
     TimeStartInput.text = Hor.Time.ToString();
     _TimeToCreate       = Hor.Time;
     SetStartStatusToText();
     DurationInput.text = Hor.Duration.ToString();
     TimeEndInput.text  = (_TimeToCreate + Hor.Duration).ToString();
     EaseInput.text     = Hor.cfmi.ToString();
     if (UseType8)
     {
         float BeginRadius, BeginDegree;
         if (!float.TryParse(BeginRadiusText.text, out BeginRadius))
         {
             return;
         }
         if (!float.TryParse(BeginDegreeText.text, out BeginDegree))
         {
             return;
         }
         RadiusInput.text = (BeginRadius + Hor.ctp1).ToString();
         DegreeInput.text = (BeginDegree + Hor.ctp).ToString();
     }
     else if (UseType11)
     {
         RadiusInput.text = Hor.ctp1.ToString();
         DegreeInput.text = Hor.ctp.ToString();
     }
     gameObject.SetActive(true);
 }
コード例 #4
0
 public void ResetGizmoMotionEditor()
 {
     CameraManager.DisableCameraUpdate = false;
     if (MotionPreviewer != null)
     {
         MotionPreviewer.positionCount = 0;
     }
     _Mode     = Lanotalium.Editor.GizmoMotionMode.Idle;
     UseType8  = false;
     UseType10 = false;
     UseType11 = false;
     UseType13 = false;
     UseMove   = false;
     UseRotate = false;
     UseInput  = false;
 }
コード例 #5
0
 public void Create()
 {
     ResetGizmoMotionEditor();
     _Mode               = Lanotalium.Editor.GizmoMotionMode.Create;
     EditMode            = false;
     UseType8            = false;
     UseType10           = false;
     UseType11           = false;
     UseType13           = false;
     UseMove             = false;
     UseRotate           = false;
     UseInput            = true;
     TimeStartInput.text = TunerManager.ChartTime.ToString();
     _TimeToCreate       = TunerManager.ChartTime;
     SetStartStatusToText();
     DurationInput.text = 1.ToString();
     EaseInput.text     = 0.ToString();
     SetTunerStatusToInputField();
     gameObject.SetActive(true);
     OnDurationChange();
 }