diff options
| author | Unknown <[email protected]> | 2019-04-06 17:55:27 -0400 |
|---|---|---|
| committer | Unknown <[email protected]> | 2019-04-06 17:55:27 -0400 |
| commit | b642d3736edf0f289fe2e955f0e336c0d019d0e5 (patch) | |
| tree | 53e73d053a7518d5dfcc373813f4867e6848b3d4 /Histacom2/AchievementBox.cs | |
| parent | 2c7c9a685b586995299387152f0a3d205c7a8ec3 (diff) | |
| download | histacom2-b642d3736edf0f289fe2e955f0e336c0d019d0e5.tar.gz histacom2-b642d3736edf0f289fe2e955f0e336c0d019d0e5.tar.bz2 histacom2-b642d3736edf0f289fe2e955f0e336c0d019d0e5.zip | |
cleanup here and there
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; |
