IBehaviour buildBehaviour(ITreeItem forEditor)
        {
            ItemProperties itemProperties = forEditor.ItemProperties ;

            var behaviour = new ScaleAnimationBehaviour(
                itemProperties,
                new FloatAnimationBehaviourProperties
                    {
                        DurationInSeconds = .75f,
                        Easing = Easing.EaseInOut,
                        From = 1,
                        To = 2,
                        Name = @"scale_animation_{0}".FormatWith( IoC.Model.NextItemNumber ),
                        NameOfPropertyToModify = @"Scale",
                        ClrTypeOfInterpolator = typeof( Quartic ).AssemblyQualifiedName
                    } ) ;

            return behaviour ;
        }
示例#2
0
        IBehaviour buildBehaviour(ITreeItem forEditor)
        {
            ItemProperties itemProperties = forEditor.ItemProperties;

            var behaviour = new ScaleAnimationBehaviour(
                itemProperties,
                new FloatAnimationBehaviourProperties
            {
                DurationInSeconds = .75f,
                Easing            = Easing.EaseInOut,
                From = 1,
                To   = 2,
                Name = @"scale_animation_{0}".FormatWith(IoC.Model.NextItemNumber),
                NameOfPropertyToModify = @"Scale",
                ClrTypeOfInterpolator  = typeof(Quartic).AssemblyQualifiedName
            });

            return(behaviour);
        }