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(); }
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); }
void _AddKeyXItem_Click(object sender, System.EventArgs e) { ContinuousTrackBar <V> trackBar = (ContinuousTrackBar <V>)Owner; trackBar.AddCurveKeyAtPosition(KeyType.X, Position.x); }
public CurveKeyView(ContinuousTrackBar <V> trackBar, int curveIndex) { this._Keys = new List <ContinuousKeyView>(); this._TrackBar = trackBar; this._CurveIndex = curveIndex; }