本文整理汇总了C#中Actor.AnimateWithTimelinev方法的典型用法代码示例。如果您正苦于以下问题:C# Actor.AnimateWithTimelinev方法的具体用法?C# Actor.AnimateWithTimelinev怎么用?C# Actor.AnimateWithTimelinev使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Actor
的用法示例。
在下文中一共展示了Actor.AnimateWithTimelinev方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FadeInActor
public void FadeInActor(Actor actor)
{
byte opacity = actor.Opacity;
actor.Opacity = 0;
actor.Show();
if (fadeInAnim==null)
fadeInAnim = actor.Animatev ((ulong) Clutter.AnimationMode.Linear, CoverManager.MaxAnimationSpan*fade_slow, new string[] { "opacity" }, new GLib.Value[] {new GLib.Value((byte) opacity)});
else
actor.AnimateWithTimelinev ((ulong) Clutter.AnimationMode.Linear, fadeInAnim.Timeline, new string[] { "opacity" }, new GLib.Value[] {new GLib.Value((byte) opacity)});
}
示例2: FadeOutActor
public void FadeOutActor(Actor actor)
{
actor.Show ();
if (fadeOutAnim==null)
fadeOutAnim = actor.Animatev ((ulong) Clutter.AnimationMode.Linear.value__, CoverManager.MaxAnimationSpan*fade_slow, new string[] { "opacity" }, new GLib.Value ((byte) 0));
else
actor.AnimateWithTimelinev ((ulong) Clutter.AnimationMode.Linear.value__, fadeOutAnim.Timeline, new string[] { "opacity" }, new GLib.Value ((byte) 0));
}
示例3: AnimateProperty
public static Timeline AnimateProperty(Actor Actor, uint Time, string Property, float To, uint Delay)
{
Timeline Timeline = new Timeline (Time);
Timeline.Delay = Delay;
string [] Properties = new string[1];
Properties [0] = Property;
Actor.AnimateWithTimelinev (6, Timeline, Properties, new GLib.Value ((float) To));
return Timeline;
}