aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorpfg <[email protected]>2017-03-12 10:10:36 -0700
committerpfg <[email protected]>2017-03-12 10:10:36 -0700
commitb825df4d6a3bb87488b50da95b89f3f130511739 (patch)
tree25813c31bce56c5de392f2d4cb0551d1e751ffd3 /ShiftOS.WinForms
parent5ee6043b9ea5baef45c08b5fb92fdebadd610dc0 (diff)
downloadshiftos_thereturn-b825df4d6a3bb87488b50da95b89f3f130511739.tar.gz
shiftos_thereturn-b825df4d6a3bb87488b50da95b89f3f130511739.tar.bz2
shiftos_thereturn-b825df4d6a3bb87488b50da95b89f3f130511739.zip
Minesweeper flagging icon, format editor icon
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/Applications/ShiftSweeper.cs9
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconFormatEditor.pngbin0 -> 1108 bytes
2 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;
diff --git a/ShiftOS.WinForms/SystemIcons/iconFormatEditor.png b/ShiftOS.WinForms/SystemIcons/iconFormatEditor.png
new file mode 100644
index 0000000..21cdc77
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconFormatEditor.png
Binary files differ