summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-09 22:54:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-09 22:54:51 +0100
commit3b00613195ad9a868dec9b15e6ffad6c2dfbf668 (patch)
treeed9559acb109129b51f43ed597cfcfe2d8d31cb0 /core/src/ch/asynk/rustanddust
parent7c180fd482fde6fb94d4db8e6ead7f9a12b34979 (diff)
downloadRustAndDust-3b00613195ad9a868dec9b15e6ffad6c2dfbf668.zip
RustAndDust-3b00613195ad9a868dec9b15e6ffad6c2dfbf668.tar.gz
PlayerInfo: us Bg instead of Sprite to scale
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/PlayerInfo.java12
1 files 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);