summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-09 22:56:56 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-09 22:56:56 +0100
commit47dddb62b66d943b8c77a0dcb868c68516063ada (patch)
treed94d8e00edb3ff99714b2371e46269c65341f113 /core/src/ch/asynk/rustanddust
parent3b00613195ad9a868dec9b15e6ffad6c2dfbf668 (diff)
downloadRustAndDust-47dddb62b66d943b8c77a0dcb868c68516063ada.zip
RustAndDust-47dddb62b66d943b8c77a0dcb868c68516063ada.tar.gz
EngagementPanel: 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/EngagementPanel.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java
index 01a8852..0597a29 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java
@@ -1,7 +1,6 @@
package ch.asynk.rustanddust.game.hud;
import com.badlogic.gdx.graphics.g2d.Batch;
-import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
@@ -28,11 +27,11 @@ public class EngagementPanel extends Patch implements Animation
private State state;
private boolean reroll;
private float rerollY;
- private Sprite usFlag;
- private Sprite geFlag;
- private Sprite winner;
- private Sprite attackImg;
- private Sprite defenseImg;
+ private Bg usFlag;
+ private Bg geFlag;
+ private Bg winner;
+ private Bg attackImg;
+ private Bg defenseImg;
private Label attack;
private Label defense;
private Label attackR;
@@ -46,10 +45,10 @@ public class EngagementPanel extends Patch implements Animation
public EngagementPanel(BitmapFont font, TextureAtlas uiAtlas, TextureAtlas hudAtlas)
{
super(uiAtlas.createPatch("typewriter"));
- usFlag = new Sprite(hudAtlas.findRegion("us-flag"));
- geFlag = new Sprite(hudAtlas.findRegion("ge-flag"));
- attackImg = new Sprite(hudAtlas.findRegion("attack"));
- defenseImg = new Sprite(hudAtlas.findRegion("defense"));
+ usFlag = new Bg(hudAtlas.findRegion("us-flag"));
+ geFlag = new Bg(hudAtlas.findRegion("ge-flag"));
+ attackImg = new Bg(hudAtlas.findRegion("attack"));
+ defenseImg = new Bg(hudAtlas.findRegion("defense"));
this.attack = new Label(font);
this.defense = new Label(font);
this.attackR = new Label(font);