Пример #1
0
        private void transformRoll(TransformComboRoll transform, int currentValue, int newValue)
        {
            Flush(false, typeof(TransformComboRoll));

            if (RollingDuration < 1)
            {
                DisplayedCount = Current;
                return;
            }

            transform.StartTime  = Time.Current;
            transform.EndTime    = Time.Current + getProportionalDuration(currentValue, newValue);
            transform.StartValue = currentValue;
            transform.EndValue   = newValue;
            transform.Easing     = RollingEasing;

            Transforms.Add(transform);
        }