aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/ShiftSweeper.cs
diff options
context:
space:
mode:
authorpfg <[email protected]>2017-03-05 09:49:47 -0800
committerpfg <[email protected]>2017-03-05 09:49:47 -0800
commit99ba9c1f9c7b433b7defd09fdb110522f3a2b4c2 (patch)
tree7993b845cc8190b6287423beb37c9708bf22b842 /ShiftOS.WinForms/Applications/ShiftSweeper.cs
parentf3af198849c85a05cb402c1e2471387c7bcb9849 (diff)
downloadshiftos_thereturn-99ba9c1f9c7b433b7defd09fdb110522f3a2b4c2.tar.gz
shiftos_thereturn-99ba9c1f9c7b433b7defd09fdb110522f3a2b4c2.tar.bz2
shiftos_thereturn-99ba9c1f9c7b433b7defd09fdb110522f3a2b4c2.zip
ShiftSweeper right click flagging
Diffstat (limited to 'ShiftOS.WinForms/Applications/ShiftSweeper.cs')
-rw-r--r--ShiftOS.WinForms/Applications/ShiftSweeper.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs
index aaeed3f..d8de58e 100644
--- a/ShiftOS.WinForms/Applications/ShiftSweeper.cs
+++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs
@@ -205,8 +205,9 @@ namespace ShiftOS.WinForms.Applications
return bttn;
}
- private void bttnOnclick(object sender, EventArgs e)
+ private void bttnOnclick(object sender, EventArgs ee)
{
+ MouseEventArgs e = (MouseEventArgs)ee;
if (!ticking.Enabled) return;
PictureBox bttnClick = sender as PictureBox;
@@ -218,8 +219,9 @@ namespace ShiftOS.WinForms.Applications
int x = System.Convert.ToInt32(split[0]);
int y = System.Convert.ToInt32(split[1]);
+
- if (!flagtime)
+ if (!flagtime && e.Button == MouseButtons.Left)
{
if (minemap[x, y] == -1)
{
@@ -249,7 +251,7 @@ namespace ShiftOS.WinForms.Applications
else if (minemap[x, y] < -1) return;
else removeBlank(x, y);
}
- else
+ else if(flagtime || e.Button == MouseButtons.Right)
{
if (!bttnClick.Enabled) return;
@@ -364,5 +366,9 @@ namespace ShiftOS.WinForms.Applications
flagtime = true;
}
}
+
+ private void ShiftSweeper_Load(object sender, EventArgs e) {
+
+ }
}
}