diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/Text.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Text.java b/core/src/ch/asynk/tankontank/game/hud/Text.java index 0e2e73e..99f07bd 100644 --- a/core/src/ch/asynk/tankontank/game/hud/Text.java +++ b/core/src/ch/asynk/tankontank/game/hud/Text.java @@ -50,6 +50,11 @@ public class Text implements Drawable, Disposable this.ry = (y + b.height); } + public TextBounds getBounds() + { + return font.getBounds(text); + } + public void write(String text) { this.text = text; |