Ejemplo n.º 1
0
            protected override void BeginShow()
            {
                ContinuousTrackBar <V> trackBar = (ContinuousTrackBar <V>)Owner;

                _AddKeyXItem.IsVisible   = trackBar._ContinuousTrack.CurveCount > 0;
                _AddKeyYItem.IsVisible   = trackBar._ContinuousTrack.CurveCount > 1;
                _AddKeyZItem.IsVisible   = trackBar._ContinuousTrack.CurveCount > 2;
                _AddKeyWItem.IsVisible   = trackBar._ContinuousTrack.CurveCount > 3;
                _AddKeyAllItem.IsVisible = trackBar._ContinuousTrack.CurveCount > 1;
                base.BeginShow();
            }
Ejemplo n.º 2
0
 public ContinuousKeyView(ContinuousTrackBar <V> trackBar, AnimationCurve curve, int curveIndex, int keyIndex)
     : base(trackBar)
 {
     this.Curve      = curve;
     this.CurveIndex = curveIndex;
     this.KeyIndex   = keyIndex;
     this._ImgIcon   = new Skill.Framework.UI.Image()
     {
         TintColor = CurveColors[curveIndex], Row = 0, Column = 0, RowSpan = 10, ColumnSpan = 10, HorizontalAlignment = Skill.Framework.UI.HorizontalAlignment.Center, VerticalAlignment = Skill.Framework.UI.VerticalAlignment.Center, Width = 10, Height = 10
     };
     this.Controls.Add(_ImgIcon);
 }
Ejemplo n.º 3
0
            void _AddKeyXItem_Click(object sender, System.EventArgs e)
            {
                ContinuousTrackBar <V> trackBar = (ContinuousTrackBar <V>)Owner;

                trackBar.AddCurveKeyAtPosition(KeyType.X, Position.x);
            }
Ejemplo n.º 4
0
 public CurveKeyView(ContinuousTrackBar <V> trackBar, int curveIndex)
 {
     this._Keys       = new List <ContinuousKeyView>();
     this._TrackBar   = trackBar;
     this._CurveIndex = curveIndex;
 }