SetBeginEndFramePair() public method

public SetBeginEndFramePair ( double startFrame, double duration, double currentFrame, float values ) : Linearstar.MikuMikuMoving.AnimateCaptionPlugin.AnimationFrame[]
startFrame double
duration double
currentFrame double
values float
return Linearstar.MikuMikuMoving.AnimateCaptionPlugin.AnimationFrame[]
コード例 #1
0
        void SetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            if (entry.Mode != control.Mode)
            {
                entry.Mode = control.Mode;
            }

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

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

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

            entry.SetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame, new[] { control.BeginValue, entry.Mode == AnimationMode.None ? control.BeginValue : control.EndValue });
        }
コード例 #2
0
        void SetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            if (entry.Mode != control.Mode)
                entry.Mode = control.Mode;

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

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

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

            entry.SetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame, new[] { control.BeginValue, entry.Mode == AnimationMode.None ? control.BeginValue : control.EndValue });
        }