aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs
diff options
context:
space:
mode:
authorlempamo <lempamo@users.noreply.github.com>2017-08-03 09:44:42 -0500
committerGitHub <noreply@github.com>2017-08-03 09:44:42 -0500
commit970dabaa90a39623c7a8271239861a09af7b2b54 (patch)
treebe800478122fb3909c40699b1e879d333afdb536 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs
parenta3b48880bf4136cb8033305fde052727e24ab8b1 (diff)
parent3e53975325a4f398150207c9362b8d63ef927f7c (diff)
downloadhistacom2-970dabaa90a39623c7a8271239861a09af7b2b54.tar.gz
histacom2-970dabaa90a39623c7a8271239861a09af7b2b54.tar.bz2
histacom2-970dabaa90a39623c7a8271239861a09af7b2b54.zip
Merge pull request #146 from jtsshieh/master
Minesweeper Scoring System
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs71
1 files changed, 71 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs
new file mode 100644
index 0000000..17a1380
--- /dev/null
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/MineBestTimes.cs
@@ -0,0 +1,71 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using TimeHACK.Engine;
+
+namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
+{
+ public partial class MineBestTimes : UserControl
+ {
+ public MineBestTimes()
+ {
+ InitializeComponent();
+ foreach (Control c in Controls)
+ {
+ if (c is Button)
+ {
+ c.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0)));
+ c.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2);
+ }
+ else
+ {
+ c.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ }
+ }
+ }
+
+ private void MineBestTimes_Load(object sender, EventArgs e)
+ {
+ timer1.Start();
+
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ ParentForm.Close();
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ SaveSystem.CurrentSave.mineSweepE = 999;
+ SaveSystem.CurrentSave.mineSweepI = 999;
+ SaveSystem.CurrentSave.mineSweepH = 999;
+ SaveSystem.SaveGame();
+ }
+
+ private void timer1_Tick(object sender, EventArgs e)
+ {
+ label4.Text = (SaveSystem.CurrentSave.mineSweepE.ToString()) + " seconds";
+ label5.Text = (SaveSystem.CurrentSave.mineSweepI.ToString()) + " seconds";
+ label6.Text = (SaveSystem.CurrentSave.mineSweepH.ToString()) + " seconds";
+ if(SaveSystem.CurrentSave.mineSweepE != 999)
+ {
+ label7.Text = SaveSystem.ProfileName;
+ }
+ if(SaveSystem.CurrentSave.mineSweepI != 999)
+ {
+ label8.Text = SaveSystem.ProfileName;
+ };
+ if(SaveSystem.CurrentSave.mineSweepH != 999)
+ {
+ label9.Text = SaveSystem.ProfileName;
+ }
+ }
+ }
+}