public override void SaveKeyFrames() { FKeyTime.SliceCount = FKeyFrames.Count; FKeyColor.SliceCount = FKeyFrames.Count; FKeyFrames.Sort(delegate(TLBaseKeyFrame k0, TLBaseKeyFrame k1) { return(k0.Time.CompareTo(k1.Time)); }); for (int i = 0; i < FKeyFrames.Count; i++) { FKeyTime.SetValue(i, FKeyFrames[i].Time); TLColorKeyFrame kfc = (FKeyFrames[i] as TLColorKeyFrame); FKeyColor.SetColor(i, kfc.RGBAColor); } }
protected override void SetSlice(int index, Color4 value) { var dst = new RGBAColor(value.Red, value.Green, value.Blue, value.Alpha); FColorConfig.SetColor(index, dst); }
protected override void SetSlice(int index, RGBAColor value) { FColorConfig.SetColor(index, value); }