aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
diff options
context:
space:
mode:
authorjtsshieh <[email protected]>2017-07-30 12:25:22 -0400
committerjtsshieh <[email protected]>2017-07-30 12:25:22 -0400
commit677482ba0b26102b2a2802502a3f29701c319e9d (patch)
treef19ff5290a2eabfb203249ec3a57260e3ff935f0 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
parent547f5382301c4b0957e886739e45389702b5c678 (diff)
downloadhistacom2-677482ba0b26102b2a2802502a3f29701c319e9d.tar.gz
histacom2-677482ba0b26102b2a2802502a3f29701c319e9d.tar.bz2
histacom2-677482ba0b26102b2a2802502a3f29701c319e9d.zip
Made so changes to Minesweeper
-Created a function for generating levels -Uploaded some pictures -FIXED UP WHOEVER MIXED UP MINESWEEPER AND CALCULATOR ICONS!!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
index f7a9e99..2029995 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
@@ -37,6 +37,9 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
_button.Click += new EventHandler(Click);
_button.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender,args,2);
_button.MouseDown += new MouseEventHandler(DismantleClick);
+ _button.FlatStyle = FlatStyle.Flat;
+ _button.FlatAppearance.BorderSize = 1;
+ _button.BackgroundImageLayout = ImageLayout.Stretch;
_game.Panel.Controls.Add(Button);
}
@@ -69,13 +72,13 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
if (Dismantled)
{
_dismantled = false;
- Button.BackColor = SystemColors.Control;
+ Button.BackgroundImage = null;
Button.Text = "?";
}
else
{
_dismantled = true;
- Button.BackgroundImage = Properties.Resources.minsweeper_flag;
+ Button.BackgroundImage = Properties.Resources.WinClassicMinesweeperFlag;
}
OnDismantle();
}