summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-10 14:01:11 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-10 14:01:11 +0100
commit126621e9a55806b13e45a2f6e37fae4cbf2da4b6 (patch)
treeb0fee5d30b7b98648b32e414c0b2127b84f92451 /core
parent588e85da9dae171699d516f5035e9f8329ba1a26 (diff)
downloadRustAndDust-126621e9a55806b13e45a2f6e37fae4cbf2da4b6.zip
RustAndDust-126621e9a55806b13e45a2f6e37fae4cbf2da4b6.tar.gz
PlayerInfo: turn goes center top
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java b/core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java
index d980a9b..8e84260 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java
@@ -64,7 +64,6 @@ public class PlayerInfo implements Disposable, Drawable, Animation
float dy = (position.getY(usFlag.getHeight()) - usFlag.getY());
usFlag.translate(dx, dy);
geFlag.translate(dx, dy);
- turns.translate(dx, dy);
aps.translate(dx, dy);
reinforcement.translate(dx, dy);
unitDock.translate(dx, dy);
@@ -76,7 +75,7 @@ public class PlayerInfo implements Disposable, Drawable, Animation
return;
this.position = position;
- float width = (usFlag.getWidth() + turns.getWidth() + aps.getWidth() + (2 * PADDING));
+ float width = (usFlag.getWidth() + aps.getWidth() + (2 * PADDING));
float height = (usFlag.getHeight() + reinforcement.getHeight() + (1 * PADDING));
float x = position.getX(width);
float y = position.getY(height);
@@ -87,8 +86,6 @@ public class PlayerInfo implements Disposable, Drawable, Animation
usFlag.setPosition(x, y);
geFlag.setPosition(x, y);
x += (usFlag.getWidth() + PADDING);
- turns.setPosition(x, y);
- x += (turns.getWidth() + PADDING);
aps.setPosition(x, y);
} else {
x = (x + width);
@@ -97,11 +94,10 @@ public class PlayerInfo implements Disposable, Drawable, Animation
x -= usFlag.getWidth();
usFlag.setPosition(x, y);
geFlag.setPosition(x, y);
- x -= (turns.getWidth() + PADDING);
- turns.setPosition(x, y);
x -= (aps.getWidth() + PADDING);
aps.setPosition(x, y);
}
+ turns.setPosition(Position.TOP_CENTER);
aps.setLabelPosition(Position.TOP_RIGHT);
turns.setLabelPosition(Position.MIDDLE_CENTER);
reinforcement.setLabelPosition(Position.TOP_LEFT);