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 Nov 10, 2019
1 parent e97348b commit 3dc57b1
Show file tree
Hide file tree
Showing 20 changed files with 2,227 additions and 1 deletion.
38 changes: 37 additions & 1 deletion FalconX4/Animations/AnimationControl.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 120 additions & 0 deletions FalconX4/Animations/AnimationControl.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
212 changes: 212 additions & 0 deletions FalconX4/Animations/AnimationControl.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
Imports FalconX4.VisualEffects
Imports FalconX4.VisualEffects.Animations.Effects
Imports FalconX4.VisualEffects.Easing

Public Class AnimationControl
Public Shared AnimationSelection As String
Public Shared AnimationSpeed As Integer
Public Shared AnimationSpeed2 As Integer
Public Shared TaskbarRefresh As Boolean
Public Shared Animation As String

Public Sub AnimateTaskbar()
Try

Do
System.Threading.Thread.Sleep(10) : Application.DoEvents()
Loop Until Animator.IsAnimated = True

Console.WriteLine("Taskbar1 || " & VisualEffects.Animations.Effects.XLocationEffect.FirstTaskbarPosition)

Dim Speed As Integer
Dim Position As Integer

Animation = AnimationSelection.ToString
Position = VisualEffects.Animations.Effects.XLocationEffect.FirstTaskbarPosition
Speed = AnimationSpeed

If TaskbarRefresh = True Then
TaskbarRefresh = False
Console.WriteLine("Refresh Taskbar!")
Taskbar.RefreshWindowsExplorer()
End If

If Animation = "None" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.Linear, Position, 100, 0)
End If

If Animation = "Linear" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.Linear, Position, Speed, 0)
End If

If Animation = "ExpoEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ExpoEaseOut, Position, Speed, 0)
End If

If Animation = "ExpoEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ExpoEaseIn, Position, Speed, 0)
End If

If Animation = "ExpoEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ExpoEaseInOut, Position, Speed, 0)
End If

If Animation = "ExpoEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ExpoEaseOutIn, Position, Speed, 0)
End If

If Animation = "CircEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CircEaseOut, Position, Speed, 0)
End If

If Animation = "CircEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CircEaseIn, Position, Speed, 0)
End If

If Animation = "CircEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CircEaseInOut, Position, Speed, 0)
End If

If Animation = "CircEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CircEaseOutIn, Position, Speed, 0)
End If

If Animation = "QuadEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuadEaseOut, Position, Speed, 0)
End If

If Animation = "QuadEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuadEaseIn, Position, Speed, 0)
End If

If Animation = "QuadEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuadEaseInOut, Position, Speed, 0)
End If

If Animation = "QuadEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuadEaseOutIn, Position, Speed, 0)
End If

If Animation = "SineEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.SineEaseOut, Position, Speed, 0)
End If

If Animation = "SineEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.SineEaseIn, Position, Speed, 0)
End If

If Animation = "SineEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.SineEaseInOut, Position, Speed, 0)
End If

If Animation = "SineEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.SineEaseOutIn, Position, Speed, 0)
End If

If Animation = "CubicEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CubicEaseOut, Position, Speed, 0)
End If

If Animation = "CubicEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CubicEaseIn, Position, Speed, 0)
End If

If Animation = "CubicEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CubicEaseInOut, Position, Speed, 0)
End If

If Animation = "CubicEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.CubicEaseOutIn, Position, Speed, 0)
End If

If Animation = "QuartEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuartEaseOut, Position, Speed, 0)
End If

If Animation = "QuartEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuartEaseIn, Position, Speed, 0)
End If

If Animation = "QuartEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuartEaseInOut, Position, Speed, 0)
End If

If Animation = "QuartEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuartEaseOutIn, Position, Speed, 0)
End If

If Animation = "QuintEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuintEaseOut, Position, Speed, 0)
End If

If Animation = "QuintEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuintEaseIn, Position, Speed, 0)
End If

If Animation = "QuintEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuintEaseInOut, Position, Speed, 0)
End If

If Animation = "QuintEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.QuintEaseOutIn, Position, Speed, 0)
End If

If Animation = "ElasticEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ElasticEaseOut, Position, Speed, 0)
End If

If Animation = "ElasticEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ElasticEaseIn, Position, Speed, 0)
End If

If Animation = "ElasticEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ElasticEaseInOut, Position, Speed, 0)
End If

If Animation = "ElasticEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.ElasticEaseOutIn, Position, Speed, 0)
End If

If Animation = "BounceEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BounceEaseOut, Position, Speed, 0)
End If

If Animation = "BounceEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BounceEaseIn, Position, Speed, 0)
End If

If Animation = "BounceEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BounceEaseInOut, Position, Speed, 0)
End If

If Animation = "BounceEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BounceEaseOutIn, Position, Speed, 0)
End If

If Animation = "BackEaseOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BackEaseOut, Position, Speed, 0)
End If

If Animation = "BackEaseIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BackEaseIn, Position, Speed, 0)
End If

If Animation = "BackEaseInOut" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BackEaseInOut, Position, Speed, 0)
End If

If Animation = "BackEaseOutIn" Then
Animate(New XLocationEffect(), AddressOf EasingFunctions.BackEaseOutIn, Position, Speed, 0)
End If

Taskbar.Updating = False
Catch ex As Exception

End Try
End Sub

Private Sub AnimationControl_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

End Class
Loading

0 comments on commit 3dc57b1

Please sign in to comment.