summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-10 17:22:08 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-10 17:22:08 +0100
commit57f4d31368386f02aa4ef14a2bb48b8e9593087b (patch)
tree5fbac0f122aa961685eef619b23df47d8abb2ca8
parent57a54fd310a1625580e5e2cbcbb9d788b8f0fefc (diff)
downloadRustAndDust-57f4d31368386f02aa4ef14a2bb48b8e9593087b.zip
RustAndDust-57f4d31368386f02aa4ef14a2bb48b8e9593087b.tar.gz
Msg: use typewriter bg, and own the padding
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Msg.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Msg.java b/core/src/ch/asynk/tankontank/game/hud/Msg.java
index 295631a..5939796 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Msg.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Msg.java
@@ -24,16 +24,16 @@ public class Msg extends Label implements Animation
}
}
- private Bg bg;
+ private Patch bg;
private float duration;
private float elapsed;
private ArrayDeque<MsgInfo> stack;
- public Msg(BitmapFont font, TextureAtlas atlas, float padding)
+ public Msg(BitmapFont font, TextureAtlas atlas)
{
- super(font, padding);
+ super(font, 20f);
this.visible = false;
- this.bg = new Bg(atlas.findRegion("disabled"));
+ this.bg = new Patch(atlas.createPatch("typewriter"));
this.stack = new ArrayDeque<MsgInfo>();
}