Skip to content

Commit

Permalink
Fixes And Fade
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorkido committed Sep 24, 2021
1 parent c64ee40 commit d676261
Show file tree
Hide file tree
Showing 10 changed files with 167 additions and 21 deletions.
18 changes: 18 additions & 0 deletions Application-Downloader-Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Application_Downloader_Form()
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly WebClient webClient = new WebClient();
private readonly Timer FadeIn = new Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
Expand Down Expand Up @@ -171,10 +172,27 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
WindowState = FormWindowState.Minimized;
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
19 changes: 19 additions & 0 deletions Cleaner-Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public Cleaner_Form()
}

private bool Rainbow;
private readonly System.Windows.Forms.Timer FadeIn = new System.Windows.Forms.Timer();

// Clearing folder's content (\)
private void ClearFolder(string FolderName)
{
Expand Down Expand Up @@ -323,6 +325,18 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
WindowState = FormWindowState.Minimized;
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Expand All @@ -331,6 +345,11 @@ private void Form_Load(object sender, EventArgs e)
string sPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
Thread.Sleep(1000);
Extract("CSGO_Cheat_Cleaner_Detector", sPath, "Resources", "Cleaner.bat"); // Extracting "Cleaner.bat"

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
37 changes: 18 additions & 19 deletions Detector-Form.Designer.cs

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

19 changes: 19 additions & 0 deletions Detector-Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public Detector_Form()
// Form Design
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly Timer FadeIn = new Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
FormNameLabel.ForeColor = Color.FromArgb(r, g, b);
Expand Down Expand Up @@ -444,10 +446,27 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
WindowState = FormWindowState.Minimized;
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
19 changes: 19 additions & 0 deletions Error_Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public Error_Form()
// Form Design
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly Timer FadeIn = new Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
FormNameLabel.ForeColor = Color.FromArgb(r, g, b);
Expand Down Expand Up @@ -100,10 +102,27 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
WindowState = FormWindowState.Minimized;
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
1 change: 0 additions & 1 deletion Exit-Form.Designer.cs

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

21 changes: 20 additions & 1 deletion Exit-Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public Exit_Form()
// Form Design
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly System.Windows.Forms.Timer FadeIn = new System.Windows.Forms.Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
FormNameLabel.ForeColor = Color.FromArgb(r, g, b);
Expand All @@ -26,7 +28,7 @@ private void Rainbow_Text_Tick(object sender, EventArgs e)
Exit_App.ForeColor = Color.FromArgb(r, g, b);
Cancel.ForeColor = Color.FromArgb(r, g, b);
RainbowText.ForeColor = Color.FromArgb(r, g, b);
RainbowText.ForeColor = Color.FromArgb(r, g, b);
RainbowText2.ForeColor = Color.FromArgb(r, g, b);
Minimize.ForeColor = Color.FromArgb(r, g, b);
if (r > 0 && b == 0)
{
Expand Down Expand Up @@ -144,10 +146,27 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
WindowState = FormWindowState.Minimized;
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
19 changes: 19 additions & 0 deletions Login-Information.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public Login_Information()
// Form Design
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly Timer FadeIn = new Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
FormNameLabel.ForeColor = Color.FromArgb(r, g, b);
Expand Down Expand Up @@ -105,10 +107,27 @@ private void RainbowDisableEnable_MouseLeave(object sender, EventArgs e)
RainbowText2.Hide();
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
18 changes: 18 additions & 0 deletions Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public Login_Form()
// Form Design
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly Timer FadeIn = new Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
Expand Down Expand Up @@ -171,10 +172,27 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
WindowState = FormWindowState.Minimized;
}

private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}
17 changes: 17 additions & 0 deletions Start.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public Start()
// Form Design
private int r = 0, g = 210, b = 0;
private bool Rainbow;
private readonly Timer FadeIn = new Timer();

private void Rainbow_Text_Tick(object sender, EventArgs e)
{
Expand Down Expand Up @@ -125,11 +126,27 @@ private void Minimize_MouseDown(object sender, MouseEventArgs e)
{
WindowState = FormWindowState.Minimized;
}
private void fadeIn(object sender, EventArgs e)
{
if (Opacity >= 0.9)
{
FadeIn.Stop(); //this stops the timer if the form is completely displayed
}
else
{
Opacity += 0.05;
}
}

private void Form_Load(object sender, EventArgs e)
{
Rainbow = true;
Clock1.Text = DateTime.Now.ToString("HH:mm:ss tt");

Opacity = 0; //first the opacity is 0
FadeIn.Interval = 2; //we'll increase the opacity every 10ms
FadeIn.Tick += new EventHandler(fadeIn); //this calls the function that changes opacity
FadeIn.Start();
}
}
}

0 comments on commit d676261

Please sign in to comment.