diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-10 11:35:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-10 11:35:13 +0100 |
commit | 991ef55ab0495d7f17bac2534c99dfa0f7341a14 (patch) | |
tree | 4ae8054856960e21f672856546b63aa236b16d5f /core/src/ch/asynk/rustanddust/menu | |
parent | 09f2b2d01df9c7ae51391c361042fb29239cc538 (diff) | |
download | RustAndDust-991ef55ab0495d7f17bac2534c99dfa0f7341a14.zip RustAndDust-991ef55ab0495d7f17bac2534c99dfa0f7341a14.tar.gz |
TutorialsMenu: hit anywhere to close
Diffstat (limited to 'core/src/ch/asynk/rustanddust/menu')
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java b/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java index 42c6520..53dd29f 100644 --- a/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java @@ -65,7 +65,7 @@ public class TutorialsMenu extends Patch { if (!visible) return false; - if (okBtn.hit(x, y)) + if (rect.contains(x, y) || okBtn.hit(x, y)) return true; return false; |