diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-08-27 11:32:44 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-08-27 11:32:44 +0100 |
| commit | f8f3bd0b1eb57c5a289513200b192e1d54d58292 (patch) | |
| tree | c9b79515fb81d90320ef386a522a5830875f6d49 /TimeHACK.Main/AchievementBox.cs | |
| parent | bffcb720f811623015ed4795032e5c57d1064c8a (diff) | |
| parent | cd6273d7c95098e0e0dd9948c6b5cec1c5f9cd3f (diff) | |
| download | histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.tar.gz histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.tar.bz2 histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.zip | |
Updated my fork!
Diffstat (limited to 'TimeHACK.Main/AchievementBox.cs')
| -rw-r--r-- | TimeHACK.Main/AchievementBox.cs | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/TimeHACK.Main/AchievementBox.cs b/TimeHACK.Main/AchievementBox.cs deleted file mode 100644 index 7c85b79..0000000 --- a/TimeHACK.Main/AchievementBox.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using TimeHACK.Engine; - -namespace TimeHACK -{ - public partial class AchievementBox : Form - { - private bool stayOnScreen = false; - - public AchievementBox(int type) - { - InitializeComponent(); - this.BringToFront(); - this.Show(); - switch (type) - { - case 0: //Piracy Ending - BackgroundImage = Properties.Resources.EndingPiracy; - stayOnScreen = true; - break; - case 20: - BackgroundImage = Properties.Resources.AchievementMines; - button1.Hide(); - break; - } - Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - 202, -102); - while (this.Location.Y != 0) - { - Thread.Sleep(5); - Location = new Point(Location.X, Location.Y + 1); - } - if (!stayOnScreen) - { - Thread.Sleep(3000); - while (this.Location.Y != -102) - { - Thread.Sleep(5); - Location = new Point(Location.X, Location.Y - 1); - } - this.Close(); - } - } - - private void button1_Click(object sender, EventArgs e) - { - Program.title.Show(); - SaveSystem.CurrentSave = null; - SaveSystem.currentTheme = null; - foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close(); - this.Close(); - } - } -} |
