summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-14 10:55:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-14 10:55:42 +0100
commit9c5b54e267c661f28cf65067168af2735667aa74 (patch)
treecc9c6fa4a1d27c0612d057885a42caf38391237a /core/src
parent78424203d7168d7a287b0c949d52f0209208a11c (diff)
downloadRustAndDust-9c5b54e267c661f28cf65067168af2735667aa74.zip
RustAndDust-9c5b54e267c661f28cf65067168af2735667aa74.tar.gz
PlayerInfo: regroup setLabelPosition(Position) calls
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
index 1cb54ef..c03e406 100644
--- a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
+++ b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
@@ -65,7 +65,6 @@ public class PlayerInfo implements Disposable, Drawable
if (position.isLeft()) {
reinforcement.setPosition(x, y);
- reinforcement.setLabelPosition(Position.TOP_LEFT);
y += (reinforcement.getHeight() + padding);
usFlag.setPosition(x, y);
geFlag.setPosition(x, y);
@@ -73,11 +72,9 @@ public class PlayerInfo implements Disposable, Drawable
turns.setPosition(x, y);
x += (turns.getWidth() + padding);
aps.setPosition(x, y);
- aps.setLabelPosition(Position.TOP_RIGHT);
} else {
x = (x + width);
reinforcement.setPosition((x - reinforcement.getWidth()), y);
- reinforcement.setLabelPosition(Position.TOP_LEFT);
y += (reinforcement.getHeight() + padding);
x -= usFlag.getWidth();
usFlag.setPosition(x, y);
@@ -86,8 +83,10 @@ public class PlayerInfo implements Disposable, Drawable
turns.setPosition(x, y);
x -= (aps.getWidth() + padding);
aps.setPosition(x, y);
- aps.setLabelPosition(Position.TOP_RIGHT);
}
+ aps.setLabelPosition(Position.TOP_RIGHT);
+ turns.setLabelPosition(Position.MIDDLE_CENTER);
+ reinforcement.setLabelPosition(Position.TOP_LEFT);
unitDock.setPosition(position, reinforcement.getY() - padding);
}