From b825df4d6a3bb87488b50da95b89f3f130511739 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 12 Mar 2017 10:10:36 -0700 Subject: Minesweeper flagging icon, format editor icon --- ShiftOS.WinForms/Applications/ShiftSweeper.cs | 9 ++++++++- ShiftOS.WinForms/SystemIcons/iconFormatEditor.png | Bin 0 -> 1108 bytes 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ShiftOS.WinForms/SystemIcons/iconFormatEditor.png (limited to 'ShiftOS.WinForms') 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 buttonImagess = new Dictionary(){ + {-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; diff --git a/ShiftOS.WinForms/SystemIcons/iconFormatEditor.png b/ShiftOS.WinForms/SystemIcons/iconFormatEditor.png new file mode 100644 index 0000000..21cdc77 Binary files /dev/null and b/ShiftOS.WinForms/SystemIcons/iconFormatEditor.png differ -- cgit v1.2.3