From 12aecf2870f7994e9c62965a823a141bfa0c5dae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= <jeremy@asynk.ch>
Date: Fri, 10 Oct 2014 13:54:28 +0200
Subject: Hud: add setRotateOff()

---
 core/src/ch/asynk/tankontank/game/Hud.java | 9 +++++++--
 1 file 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;
-- 
cgit v1.1-2-g2b99