From 677482ba0b26102b2a2802502a3f29701c319e9d Mon Sep 17 00:00:00 2001 From: jtsshieh Date: Sun, 30 Jul 2017 12:25:22 -0400 Subject: Made so changes to Minesweeper -Created a function for generating levels -Uploaded some pictures -FIXED UP WHOEVER MIXED UP MINESWEEPER AND CALCULATOR ICONS!! --- TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs') 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(); } -- cgit v1.2.3