diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 9 | 
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; | 
