diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 00:32:41 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 00:32:41 +0100 |
commit | 819928ad7abbb7bac19f6ce50c1cdb72f9ba79d6 (patch) | |
tree | ab50f568c217293547c9713c88bb0cc0c50f81fe | |
parent | 4e37c84da7dc00c228960d1d72327f8f098fda65 (diff) | |
download | RustAndDust-819928ad7abbb7bac19f6ce50c1cdb72f9ba79d6.zip RustAndDust-819928ad7abbb7bac19f6ce50c1cdb72f9ba79d6.tar.gz |
OkCancel: if cancelBtn is hidden, click everywhere is OK
-rw-r--r-- | core/src/ch/asynk/tankontank/ui/OkCancel.java | 4 |
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; |