summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-10 13:54:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-10 13:54:28 +0200
commit12aecf2870f7994e9c62965a823a141bfa0c5dae (patch)
treeee3d69b3519673c47b68d9faf828b710e564de25 /core/src
parent5f6ba673adfd7993ef160f391fd5e56ff22eb5da (diff)
downloadRustAndDust-12aecf2870f7994e9c62965a823a141bfa0c5dae.zip
RustAndDust-12aecf2870f7994e9c62965a823a141bfa0c5dae.tar.gz
Hud: add setRotateOff()
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 68847eb..2c67f61 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -204,10 +204,10 @@ public class Hud implements Disposable
float x = (bottomLeft.x - checkBtn.getWidth());
float y = bottomLeft.y;
- if (rotate) y = setButton(rotateBtn, x, y);
- else rotateBtn.hide();
if (move) y = setButton(moveBtn, x, y);
else moveBtn.hide();
+ if (rotate) y = setButton(rotateBtn, x, y);
+ else rotateBtn.hide();
if (attack) y = setButton(attackBtn, x, y);
else attackBtn.hide();
if (cancel) y = setButton(cancelBtn, x, y);
@@ -227,6 +227,11 @@ public class Hud implements Disposable
cancelBtn.hide();
}
+ public void setRotateOff()
+ {
+ rotateBtn.setOff();
+ }
+
public boolean touchDown(float x, float y)
{
if (infoRect.contains(x,y)) return true;