From 13cb30fb9bcc645869c6ce895a5c1fa28d413fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 9 Dec 2014 23:21:24 +0100 Subject: Hud: load font from hud.atlas not skin --- core/src/ch/asynk/tankontank/game/Hud.java | 5 +++-- 1 file 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(); -- cgit v1.1-2-g2b99