diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-10 11:36:36 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-10 11:36:36 +0100 |
commit | 5f8a6934cf9c8a3ef0c73f196f5e6a2dd8b8c91f (patch) | |
tree | 55e27763de74f7758118374da4ca34e2ffba15de /core/src | |
parent | 991ef55ab0495d7f17bac2534c99dfa0f7341a14 (diff) | |
download | RustAndDust-5f8a6934cf9c8a3ef0c73f196f5e6a2dd8b8c91f.zip RustAndDust-5f8a6934cf9c8a3ef0c73f196f5e6a2dd8b8c91f.tar.gz |
StatisticsPanel: hit anywhere to close
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java b/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java index a5e3ada..c6cfbc5 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java +++ b/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java @@ -77,9 +77,7 @@ public class StatisticsPanel extends Patch @Override public boolean hit(float x, float y) { - if (okBtn.hit(x, y)) - return true; - return false; + return (rect.contains(x, y) || okBtn.hit(x, y)); } @Override |