};
_animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 0, 500);
_animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X), 500, 1000);
- _animation.AnimateBy(_text, "ScaleX", 3.0f, 1000, 1500);
+ _animation.AnimateBy(_text, "ScaleX", 3, 1000, 1500);
_animation.AnimateBy(_text, "ScaleY", 4.0f, 1500, 2000);
_animation.EndAction = Animation.EndActions.Discard;
_animation.Finished += AnimationFinished;
throw new System.Exception("second argument string property is invalid parameter!");
}
+ PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
+ if(propertyType.Equals(PropertyType.Float))
+ {
+ System.Type type = relativeValue.GetType();
+ if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
+ {
+ int num = (int)relativeValue;
+ relativeValue = (float)num;
+ }
+ }
+
PropertyValue val = PropertyValue.CreateFromObject(relativeValue);
if (alphaFunction != null)
throw new System.Exception("second argument string property is invalid parameter!");
}
+ PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
+ if(propertyType.Equals(PropertyType.Float))
+ {
+ System.Type type = relativeValue.GetType();
+ if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
+ {
+ int num = (int)relativeValue;
+ relativeValue = (float)num;
+ }
+ }
+
PropertyValue val = PropertyValue.CreateFromObject(relativeValue);
if (alphaFunction != null)
throw new System.Exception("second argument string property is invalid parameter!");
}
+ PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
+ if(propertyType.Equals(PropertyType.Float))
+ {
+ System.Type type = destinationValue.GetType();
+ if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
+ {
+ int num = (int)destinationValue;
+ destinationValue = (float)num;
+ }
+ }
+
PropertyValue val = PropertyValue.CreateFromObject(destinationValue);
if (alphaFunction != null)
throw new System.Exception("second argument string property is invalid parameter!");
}
+ PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
+ if(propertyType.Equals(PropertyType.Float))
+ {
+ System.Type type = destinationValue.GetType();
+ if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
+ {
+ int num = (int)destinationValue;
+ destinationValue = (float)num;
+ }
+ }
+
PropertyValue val = PropertyValue.CreateFromObject(destinationValue);
if (alphaFunction != null)