-
-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aa4a68
commit 7fb7b87
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
|
||
Imports FalconX4.VisualEffects.Animators | ||
Imports FalconX4.VisualEffects.Easing | ||
|
||
Namespace VisualEffects | ||
Public Module AnimationExtensions | ||
|
||
<System.Runtime.CompilerServices.Extension> | ||
Public Function Animate(ByVal control As Control, ByVal iAnimation As IEffect, ByVal easing As EasingDelegate, ByVal valueToReach As Integer, ByVal duration As Integer, ByVal delay As Integer, Optional ByVal reverse As Boolean = False, Optional ByVal loops As Integer = 1) As AnimationStatus | ||
Return Animator.Animate(control, iAnimation, easing, valueToReach, duration, delay, reverse, loops) | ||
End Function | ||
|
||
<System.Runtime.CompilerServices.Extension> | ||
Public Function Animate2(ByVal control As Control, ByVal iAnimation As IEffect, ByVal easing As EasingDelegate, ByVal valueToReach As Integer, ByVal duration As Integer, ByVal delay As Integer, Optional ByVal reverse As Boolean = False, Optional ByVal loops As Integer = 1) As AnimationStatus | ||
Return Animator2.Animate(control, iAnimation, easing, valueToReach, duration, delay, reverse, loops) | ||
End Function | ||
|
||
<System.Runtime.CompilerServices.Extension> | ||
Public Function Animate3(ByVal control As Control, ByVal iAnimation As IEffect, ByVal easing As EasingDelegate, ByVal valueToReach As Integer, ByVal duration As Integer, ByVal delay As Integer, Optional ByVal reverse As Boolean = False, Optional ByVal loops As Integer = 1) As AnimationStatus | ||
Return Animator3.Animate(control, iAnimation, easing, valueToReach, duration, delay, reverse, loops) | ||
End Function | ||
|
||
End Module | ||
End Namespace |