Exemple #1
0
 public static Vector2FTweener FTLocation(this FlaxEngine.GUI.Control actor, Vector2 endPos, float time)
 {
     return(new Vector2FTweener(() => actor.Location, (y) => actor.Location = y, endPos, time));
 }
Exemple #2
0
 public static FloatFTweener FTLocalLocationY(this FlaxEngine.GUI.Control actor, float endPos, float time)
 {
     return(new FloatFTweener(() => actor.LocalLocation.Y, (y) => actor.LocalLocation += new Vector2(0, 1) * (y - actor.LocalLocation.Y), endPos, time));
 }
Exemple #3
0
 public static Sequence FTShakeLocalLocation(this FlaxEngine.GUI.Control actor, float time, float strength = 2, int vibrato = 2, float randomness = 2, bool fade = true)
 {
     return(Vector2FTweener.Shake(() => actor.LocalLocation, (y) => actor.LocalLocation = y, actor.LocalLocation, time, strength, vibrato, randomness, fade));
 }
Exemple #4
0
 public static Sequence FTShakeRotation(this FlaxEngine.GUI.Control actor, float time, float strength = 90, int vibrato = 10, float randomness = 90, bool fade = true)
 {
     return(FloatFTweener.Shake(() => actor.Rotation, (y) => actor.Rotation = y, actor.Rotation, time, strength, vibrato, randomness, fade));
 }