diff options
| author | pfg <[email protected]> | 2017-03-12 10:10:36 -0700 |
|---|---|---|
| committer | pfg <[email protected]> | 2017-03-12 10:10:36 -0700 |
| commit | b825df4d6a3bb87488b50da95b89f3f130511739 (patch) | |
| tree | 25813c31bce56c5de392f2d4cb0551d1e751ffd3 /ShiftOS.WinForms/Applications | |
| parent | 5ee6043b9ea5baef45c08b5fb92fdebadd610dc0 (diff) | |
| download | shiftos_thereturn-b825df4d6a3bb87488b50da95b89f3f130511739.tar.gz shiftos_thereturn-b825df4d6a3bb87488b50da95b89f3f130511739.tar.bz2 shiftos_thereturn-b825df4d6a3bb87488b50da95b89f3f130511739.zip | |
Minesweeper flagging icon, format editor icon
Diffstat (limited to 'ShiftOS.WinForms/Applications')
| -rw-r--r-- | ShiftOS.WinForms/Applications/ShiftSweeper.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs index cf6d331..72e9062 100644 --- a/ShiftOS.WinForms/Applications/ShiftSweeper.cs +++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs @@ -70,6 +70,12 @@ namespace ShiftOS.WinForms.Applications { {9, "9" } }; + Dictionary<int, Bitmap> buttonImagess = new Dictionary<int, Bitmap>(){ + {-2, Properties.Resources.SweeperTileFlag } + }; + + // Properties.Resources.SweeperTileBomb + const int QUESTIONED = -3; const int FLAGGED = -2; const int UNDISCOVERED = -1; @@ -145,7 +151,8 @@ namespace ShiftOS.WinForms.Applications { if (type == REMOVE) { } else { - tile.Text = buttonImages[type]; + tile.Text = buttonImages.ContainsKey(type) ? buttonImages[type] : ""; + tile.BackgroundImage = buttonImagess.ContainsKey(type) ? buttonImagess[type] : tile.BackgroundImage; tile.MouseDown += new MouseEventHandler(tile_ClickDown); tile.MouseUp += new MouseEventHandler(tile_Click); tile.FlatStyle = FlatStyle.Flat; |
