From c6deec5f553295704c1dc0fd02abe737021a17c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 7 Nov 2014 16:57:48 +0100 Subject: Text: add missing TextBounds getBounds() --- core/src/ch/asynk/tankontank/game/hud/Text.java | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.1-2-g2b99