예제 #1
0
        public unsafe NCurveEditor GetTrackEditor()
        {
            NCurveEditor nCurveEditor = new NCurveEditor(*(int *)this.Var);

            this.CurveEditor = nCurveEditor;
            return(nCurveEditor);
        }
예제 #2
0
        private unsafe void CreateCurveEditor()
        {
            GKeyLimit gKeyLimit = 1f;

            *(ref gKeyLimit + 4) = this.MinValue;
            *(ref gKeyLimit + 8) = this.MaxValue;
            int curveType = this.CurveType;

            if (curveType != 0)
            {
                if (curveType != 1)
                {
                    if (curveType == 2)
                    {
                        this.curveeditor = new NCurveEditor(< Module >.GEditorWorld.GetCameraCurveRollCurve(this.propWorld, this.CurveIndex), ref gKeyLimit);
                    }
                }
                else
                {
                    this.curveeditor = new NCurveEditor(< Module >.GEditorWorld.GetCameraCurveFOVCurve(this.propWorld, this.CurveIndex), ref gKeyLimit);
                }
            }
            else
            {
                this.curveeditor = new NCurveEditor(< Module >.GEditorWorld.GetCameraCurveTimeCurve(this.propWorld, this.CurveIndex), ref gKeyLimit);
            }
            base.SuspendLayout();
            base.Controls.Add(this.curveeditor);
            base.ResumeLayout(false);
            this.curveeditor.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
        }
예제 #3
0
 protected void raise_TrackSelected(NCurveEditor i1)
 {
     PropertyTreeCore.TrackSelectedHandler trackSelected = this.TrackSelected;
     if (trackSelected != null)
     {
         trackSelected(i1);
     }
 }
예제 #4
0
 private void PropTreeCore_TrackSelected(NCurveEditor curveeditor)
 {
     this.raise_TrackSelected(curveeditor);
 }