aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/AchievementBox.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-11-04 09:50:43 +0000
committerAlex-TIMEHACK <[email protected]>2017-11-04 09:50:43 +0000
commitf933ce9b841a5f302066336877f86119de034eb4 (patch)
tree50e23551bae5ade3a263d9c1c054fb326a7ab5a6 /Histacom2/AchievementBox.cs
parent6ab1468786f1e865e9ff408d32149f9c9620d844 (diff)
parent382f0167714bbcad00ab710fe7dcfa05eaeb88ac (diff)
downloadhistacom2-f933ce9b841a5f302066336877f86119de034eb4.tar.gz
histacom2-f933ce9b841a5f302066336877f86119de034eb4.tar.bz2
histacom2-f933ce9b841a5f302066336877f86119de034eb4.zip
Updated my fork!
Conflicts: Histacom2/TitleScreen.Designer.cs Histacom2/TitleScreen.cs
Diffstat (limited to 'Histacom2/AchievementBox.cs')
-rw-r--r--Histacom2/AchievementBox.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Histacom2/AchievementBox.cs b/Histacom2/AchievementBox.cs
index e6d714a..a65ef23 100644
--- a/Histacom2/AchievementBox.cs
+++ b/Histacom2/AchievementBox.cs
@@ -27,6 +27,10 @@ namespace Histacom2
BackgroundImage = Properties.Resources.EndingPiracy;
stayOnScreen = true;
break;
+ case 1:
+ BackgroundImage = Properties.Resources.EndingDestruction;
+ stayOnScreen = true;
+ break;
case 20:
BackgroundImage = Properties.Resources.AchievementMines;
button1.Hide();
@@ -55,7 +59,8 @@ namespace Histacom2
Program.title.Show();
SaveSystem.CurrentSave = null;
SaveSystem.currentTheme = null;
- foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close();
+ Application.OpenForms.Cast<Form>().Where(x => !(x is TitleScreen | x is AchievementBox)).ToList().ForEach(x => x.Close());
+ //foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close();
this.Close();
}
}