GetBeginEndFramePair() public method

public GetBeginEndFramePair ( double startFrame, double duration, double currentFrame ) : Linearstar.MikuMikuMoving.AnimateCaptionPlugin.AnimationFrame[]
startFrame double
duration double
currentFrame double
return Linearstar.MikuMikuMoving.AnimateCaptionPlugin.AnimationFrame[]
コード例 #1
0
        void GetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            var pair     = entry.GetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame);
            var valueSet = new[] { pair.First().Value, pair.Last().Value };

            if (control.BeginValue != valueSet[0])
            {
                control.BeginValue = valueSet[0];
            }

            if (control.EndValue != valueSet[1])
            {
                control.EndValue = valueSet[1];
            }

            if (entry.Mode != control.Mode)
            {
                control.Mode = entry.Mode;
            }

            if (entry.EaseIn != control.EaseIn)
            {
                control.EaseIn = entry.EaseIn;
            }

            if (entry.EaseOut != control.EaseOut)
            {
                control.EaseOut = entry.EaseOut;
            }

            if (entry.IterationDuration != control.IterationDuration)
            {
                control.IterationDuration = entry.IterationDuration;
            }
        }
コード例 #2
0
        void GetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            var pair = entry.GetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame);
            var valueSet = new[] { pair.First().Value, pair.Last().Value };

            if (control.BeginValue != valueSet[0])
                control.BeginValue = valueSet[0];

            if (control.EndValue != valueSet[1])
                control.EndValue = valueSet[1];

            if (entry.Mode != control.Mode)
                control.Mode = entry.Mode;

            if (entry.EaseIn != control.EaseIn)
                control.EaseIn = entry.EaseIn;

            if (entry.EaseOut != control.EaseOut)
                control.EaseOut = entry.EaseOut;

            if (entry.IterationDuration != control.IterationDuration)
                control.IterationDuration = entry.IterationDuration;
        }