summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-19 00:32:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-19 00:32:41 +0100
commit819928ad7abbb7bac19f6ce50c1cdb72f9ba79d6 (patch)
treeab50f568c217293547c9713c88bb0cc0c50f81fe /core
parent4e37c84da7dc00c228960d1d72327f8f098fda65 (diff)
downloadRustAndDust-819928ad7abbb7bac19f6ce50c1cdb72f9ba79d6.zip
RustAndDust-819928ad7abbb7bac19f6ce50c1cdb72f9ba79d6.tar.gz
OkCancel: if cancelBtn is hidden, click everywhere is OK
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/ui/OkCancel.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/ui/OkCancel.java b/core/src/ch/asynk/tankontank/ui/OkCancel.java
index 3ed64d6..3dfd28d 100644
--- a/core/src/ch/asynk/tankontank/ui/OkCancel.java
+++ b/core/src/ch/asynk/tankontank/ui/OkCancel.java
@@ -81,6 +81,10 @@ public class OkCancel extends Patch
@Override
public boolean hit(float x, float y)
{
+ if (!cancelBtn.visible && super.hit(x, y)) {
+ ok = true;
+ return true;
+ }
if (okBtn.hit(x, y)) {
ok = true;
return true;