diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-07 16:57:48 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-07 16:57:48 +0100 |
commit | c6deec5f553295704c1dc0fd02abe737021a17c5 (patch) | |
tree | bf45c6cc55ffaab39dff3d6baba18e35cb1bf130 /core/src/ch/asynk/tankontank | |
parent | 87b88167cf10cbb977f9f04fe204d65d89f1b781 (diff) | |
download | RustAndDust-c6deec5f553295704c1dc0fd02abe737021a17c5.zip RustAndDust-c6deec5f553295704c1dc0fd02abe737021a17c5.tar.gz |
Text: add missing TextBounds getBounds()
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; |