Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAnd1998 authored Oct 20, 2019
1 parent 0aa4a68 commit 7fb7b87
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion FalconX4/Extensions/AnimationExtensions.vb
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

0 comments on commit 7fb7b87

Please sign in to comment.