From 9c5b54e267c661f28cf65067168af2735667aa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 14 Nov 2014 10:55:42 +0100 Subject: PlayerInfo: regroup setLabelPosition(Position) calls --- core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java | 7 +++---- 1 file 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); } -- cgit v1.1-2-g2b99