From 3b00613195ad9a868dec9b15e6ffad6c2dfbf668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 22:54:51 +0100 Subject: PlayerInfo: us Bg instead of Sprite to scale --- core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java | 12 ++++++------ 1 file changed, 6 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 b8b3ac1..d980a9b 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java +++ b/core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java @@ -3,7 +3,6 @@ package ch.asynk.rustanddust.game.hud; import com.badlogic.gdx.utils.Disposable; import com.badlogic.gdx.graphics.g2d.Batch; -import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; @@ -17,6 +16,7 @@ import ch.asynk.rustanddust.game.Hud; import ch.asynk.rustanddust.game.Army; import ch.asynk.rustanddust.game.Unit; import ch.asynk.rustanddust.game.Player; +import ch.asynk.rustanddust.ui.Bg; import ch.asynk.rustanddust.ui.LabelImage; import ch.asynk.rustanddust.ui.Position; @@ -28,9 +28,9 @@ public class PlayerInfo implements Disposable, Drawable, Animation private Object hit; - private Sprite flag; - private Sprite usFlag; - private Sprite geFlag; + private Bg flag; + private Bg usFlag; + private Bg geFlag; private LabelImage turns; private LabelImage aps; private LabelImage reinforcement; @@ -41,8 +41,8 @@ public class PlayerInfo implements Disposable, Drawable, Animation { this.ctrl = ctrl; this.position = Position.MIDDLE_CENTER; - usFlag = new Sprite(hudAtlas.findRegion("us-flag")); - geFlag = new Sprite(hudAtlas.findRegion("ge-flag")); + usFlag = new Bg(hudAtlas.findRegion("us-flag")); + geFlag = new Bg(hudAtlas.findRegion("ge-flag")); turns = new LabelImage(hudAtlas.findRegion("turns"), font, 5f); aps = new LabelImage(hudAtlas.findRegion("aps"), font, 5f); reinforcement = new LabelImage(hudAtlas.findRegion("reinforcement"), font, 5f); -- cgit v1.1-2-g2b99