diff options
| author | lempamo <[email protected]> | 2017-08-08 10:42:48 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-08-08 10:42:48 -0400 |
| commit | ebe1b011db93d47b7a29b8b4d1e371b1a97bffce (patch) | |
| tree | 81408da6b7fd97e36ac8e1a396ce52567b7b5705 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs | |
| parent | b33a6b68aeca7cee4f4a9abf6eb012b100a04a39 (diff) | |
| download | histacom2-ebe1b011db93d47b7a29b8b4d1e371b1a97bffce.tar.gz histacom2-ebe1b011db93d47b7a29b8b4d1e371b1a97bffce.tar.bz2 histacom2-ebe1b011db93d47b7a29b8b4d1e371b1a97bffce.zip | |
custom minesweeper tables AND painted separators
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs index 1dea7e7..fc1e38f 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs @@ -13,6 +13,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper private Button _button; private bool _dismantled = false; + private bool _questioned = false; private Game _game; private bool _minded = false; private bool _opened = false; @@ -124,10 +125,12 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper if (Dismantled) { _dismantled = false; + _questioned = true; Button.BackgroundImage = Properties.Resources.minesweepSquareQuestion; } - else if(Button.BackgroundImage == Properties.Resources.minesweepSquareQuestion) + else if(_questioned) { + _questioned = false; Button.BackgroundImage = Properties.Resources.minesweepSquare; return; } |
