aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/AchievementScreen.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-22 15:35:30 -0400
committerlempamo <[email protected]>2017-07-22 15:35:30 -0400
commit7b12feef44adfcafd46d651adcd3e8fe11cb8523 (patch)
treec291216b6e30a94100189567b70372caa9c3e17a /TimeHACK.Main/AchievementScreen.cs
parent845d40b0b9cd3ed2d14016a7d3cb5ce5a521a369 (diff)
downloadhistacom2-7b12feef44adfcafd46d651adcd3e8fe11cb8523.tar.gz
histacom2-7b12feef44adfcafd46d651adcd3e8fe11cb8523.tar.bz2
histacom2-7b12feef44adfcafd46d651adcd3e8fe11cb8523.zip
more achievement things
Diffstat (limited to 'TimeHACK.Main/AchievementScreen.cs')
-rw-r--r--TimeHACK.Main/AchievementScreen.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/TimeHACK.Main/AchievementScreen.cs b/TimeHACK.Main/AchievementScreen.cs
index 37fa68b..979ce91 100644
--- a/TimeHACK.Main/AchievementScreen.cs
+++ b/TimeHACK.Main/AchievementScreen.cs
@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using TimeHACK.Engine;
namespace TimeHACK
{
@@ -16,5 +17,26 @@ namespace TimeHACK
{
InitializeComponent();
}
+
+ private void AchievementScreen_Load(object sender, EventArgs e)
+ {
+ byte[] achieved = SaveSystem.GetAchievements();
+
+ if (achieved[0] == 1)
+ {
+ listView1.Items[0].ImageIndex = 0;
+ listView1.Items[0].Name = "Piracy Ending";
+ }
+ if (achieved[1] == 1)
+ {
+ listView1.Items[1].ImageIndex = 0;
+ listView1.Items[1].Name = "Netpocalypse Ending";
+ }
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
}
}