From b825df4d6a3bb87488b50da95b89f3f130511739 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 12 Mar 2017 10:10:36 -0700 Subject: [PATCH] Minesweeper flagging icon, format editor icon --- ShiftOS.WinForms/Applications/ShiftSweeper.cs | 9 ++++++++- .../SystemIcons/iconFormatEditor.png | Bin 0 -> 1108 bytes 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ShiftOS.WinForms/SystemIcons/iconFormatEditor.png 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 0000000000000000000000000000000000000000..21cdc77f812504e1784670cc4b563ac8985b68b5 GIT binary patch literal 1108 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4(FKU=qv>i71Ki^|4CM&(%vz$xlkv ztH>-n*TA>HIW;5GqpB!1xXLdi zxhgx^GDXSWj?1RP3TQxXYDuC(MQ%=Bu~mhw64+cTAR8pC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