diff options
| author | Michael Webb <[email protected]> | 2019-04-06 17:22:50 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-06 17:22:50 -0500 |
| commit | 9d3fa715e583b668f2ffd3754886b343c5440032 (patch) | |
| tree | 19438aa123c7ffd85a3e76ca48931c01f39abb1e /Histacom2/AchievementBox.cs | |
| parent | 8a8a895afa16a9b7cec499b5a25746e37ceb4cb4 (diff) | |
| parent | e5e70be7df622617a5ecbc2d5821724021f8b7ef (diff) | |
| download | histacom2-9d3fa715e583b668f2ffd3754886b343c5440032.tar.gz histacom2-9d3fa715e583b668f2ffd3754886b343c5440032.tar.bz2 histacom2-9d3fa715e583b668f2ffd3754886b343c5440032.zip | |
Merge pull request #5 from lempamo/master
lets try this again
Diffstat (limited to 'Histacom2/AchievementBox.cs')
| -rw-r--r-- | Histacom2/AchievementBox.cs | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/Histacom2/AchievementBox.cs b/Histacom2/AchievementBox.cs index a65ef23..bf0b582 100644 --- a/Histacom2/AchievementBox.cs +++ b/Histacom2/AchievementBox.cs @@ -12,17 +12,13 @@ using Histacom2.Engine; namespace Histacom2 { - public partial class AchievementBox : Form - { + public partial class AchievementBox : Form { private bool stayOnScreen = false; - public AchievementBox(int type) - { + public AchievementBox(int type) { InitializeComponent(); - this.BringToFront(); - this.Show(); - switch (type) - { + BringToFront(); + switch (type) { case 0: //Piracy Ending BackgroundImage = Properties.Resources.EndingPiracy; stayOnScreen = true; @@ -37,25 +33,22 @@ namespace Histacom2 break; } Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - 202, -102); - while (this.Location.Y != 0) - { + Show(); + while (Location.Y != 0) { Thread.Sleep(5); Location = new Point(Location.X, Location.Y + 1); } - if (!stayOnScreen) - { + if (!stayOnScreen) { Thread.Sleep(3000); - while (this.Location.Y != -102) - { + while (Location.Y != -102) { Thread.Sleep(5); Location = new Point(Location.X, Location.Y - 1); } - this.Close(); + Close(); } } - private void button1_Click(object sender, EventArgs e) - { + private void button1_Click(object sender, EventArgs e) { Program.title.Show(); SaveSystem.CurrentSave = null; SaveSystem.currentTheme = null; |
