summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-09 23:21:24 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-09 23:21:24 +0100
commit13cb30fb9bcc645869c6ce895a5c1fa28d413fbe (patch)
tree6e73151b56b9b183cfdda9ec04315d5a8d22b960 /core/src/ch/asynk
parent7ef108e5218b74423ee8728e57c5ef29104d7d83 (diff)
downloadRustAndDust-13cb30fb9bcc645869c6ce895a5c1fa28d413fbe.zip
RustAndDust-13cb30fb9bcc645869c6ce895a5c1fa28d413fbe.tar.gz
Hud: load font from hud.atlas not skin
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 10af85b..dfbe814 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -2,6 +2,8 @@ package ch.asynk.tankontank.game;
import java.util.LinkedList;
+import com.badlogic.gdx.Gdx;
+
import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.graphics.g2d.Batch;
@@ -47,9 +49,8 @@ public class Hud implements Disposable, Animation
this.game = game;
this.ctrl = ctrl;
- font = game.skin.getFont("default-font");
TextureAtlas atlas = game.factory.hudAtlas;
-
+ font = new BitmapFont(Gdx.files.internal("skin/veteran.fnt"), atlas.findRegion("veteran-white"));
playerInfo = new PlayerInfo(ctrl, font, atlas, 5f);
actionButtons = new ActionButtons(ctrl, atlas.findRegion("disabled"), atlas, 5f);
actionButtons.hide();