Exemplo n.º 1
0
        internal TimeLineCurveView(CurveEditor editor)
        {
            this.Editor       = editor;
            ShowTimePosition  = false;
            ShowSelectionTime = false;

            ZoomFactorY = 1.0;
            _MinValue   = -0.1f;
            _MaxValue   = 1.1f;

            MinVisibleValue = MinValue;
            MaxVisibleValue = MaxValue;

            _MultiSelector = new UI.MultiSelector <CurveKey>(this, Editor.Selection);
            Controls.Add(_MultiSelector);
        }
Exemplo n.º 2
0
        private void AddCurves(Component component)
        {
            CurveEditor.EditCurveInfo[] curves = CurveEditor.GetCurves(component);
            if (curves != null && curves.Length > 0)
            {
                FolderView folder = new FolderView();
                folder.Foldout.Content.text = component.GetType().Name;
                folder.Foldout.IsOpen       = true;

                foreach (var c in curves)
                {
                    CurveTrack             track = _CurveEditor.AddCurve(c.GetCurve(), c.Attribute.Color);
                    CurveTrackTreeViewItem item  = new CurveTrackTreeViewItem(track, c);
                    folder.Controls.Add(item);
                }

                _CurveTreeView.Controls.Add(folder);
            }
        }