aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-07 17:16:14 -0400
committerlempamo <[email protected]>2017-08-07 17:16:14 -0400
commit1a7baf7a0ed6a9eaa4549cc2ec313dcef0311c0b (patch)
treee2c8427b9cc1618007597d02b41879bebd1852a0 /TimeHACK.Main/OS
parente838d66d36751fdbf5c2f7fadab8fee42729b6ac (diff)
downloadhistacom2-1a7baf7a0ed6a9eaa4549cc2ec313dcef0311c0b.tar.gz
histacom2-1a7baf7a0ed6a9eaa4549cc2ec313dcef0311c0b.tar.bz2
histacom2-1a7baf7a0ed6a9eaa4549cc2ec313dcef0311c0b.zip
minesweeper graphics part 2
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs6
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs10
4 files changed, 12 insertions, 8 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 8629f41..db7b7f6 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -569,7 +569,7 @@ namespace TimeHACK.OS.Win95
private void MinsweeperToolStripMenuItem_Click(object sender, EventArgs e)
{
- WinClassic app = wm.StartWin95(new WinClassicMinesweeper(), "Minesweeper", Properties.Resources.WinClassicMinesweeper, false, false);
+ WinClassic app = wm.StartWin95(new WinClassicMinesweeper(), "Minesweeper", Properties.Resources.WinClassicMinesweeper, false, false, false, false);
AddTaskBarItem(app, app.Tag.ToString(), "Minesweeper", Properties.Resources.WinClassicMinesweeper);
nonimportantapps.Add(app);
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
index b01596c..be3f1c8 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
@@ -67,10 +67,14 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
foreach (Square s in _squares)
{
s.RemoveEvents();
- if (s.Minded && !s.Exploded)
+ if (s.Minded && !s.Exploded && !s.Dismantled)
{
s.Button.BackgroundImage = Properties.Resources.minesweepSquareMine;
}
+ if (s.Dismantled && !s.Minded)
+ {
+ s.Button.BackgroundImage = Properties.Resources.minesweepSquareWrong;
+ }
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
index ef20710..00594b2 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
@@ -207,7 +207,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
Button.BackgroundImage = Properties.Resources.minesweepSquare4;
break;
case 5:
- Button.ForeColor = Color.DarkRed;
+ Button.BackgroundImage = Properties.Resources.minesweepSquare5;
break;
case 6:
Button.ForeColor = Color.LightBlue;
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs
index fb8f112..5556e18 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs
@@ -43,24 +43,25 @@ namespace TimeHACK.OS.Win95.Win95Apps
panel2.Paint -= (sender, args) => Paintbrush.PaintClassicBordersIndented(sender, args, 3);
panel2.Refresh();
panel2.Paint += (sender, args) => Paintbrush.PaintClassicBordersIndented(sender, args, 3);
+ button1.Location = new Point(this.Width / 2 - 12, 32);
button1.PerformClick();
}
private void begginnerToolStripMenuItem_Click(object sender, EventArgs e)
{
level = "easy";
- button1.Location = new Point(70, 32);
+ //button1.Location = new Point(70, 32);
calculateFormSize(8, 8);
}
private void intermediateToolStripMenuItem_Click(object sender, EventArgs e)
{
level = "medium";
- button1.Location = new Point(208, 32);
+ //button1.Location = new Point(158, 32);
calculateFormSize(16, 16);
}
private void expertToolStripMenuItem_Click(object sender, EventArgs e)
{
level = "hard";
- button1.Location = new Point(381, 32);
+ //button1.Location = new Point(381, 32);
calculateFormSize(30, 16);
}
private void button1_Click(object sender, EventArgs e)
@@ -120,6 +121,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
}
SaveSystem.SaveGame();
+ timer1.Stop();
}
}
@@ -131,8 +133,6 @@ namespace TimeHACK.OS.Win95.Win95Apps
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
- Thread t = new Thread(Achieve);
- t.Start();
this.ParentForm.Close();
}
}