From 301bfbb899e1e77a031256affac5027a069a91f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 21 Feb 2016 22:18:31 +0100 Subject: Label: add String text to constructors --- core/src/ch/asynk/rustanddust/ui/Label.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/ui/Label.java b/core/src/ch/asynk/rustanddust/ui/Label.java index 1bff1ba..cb4d54e 100644 --- a/core/src/ch/asynk/rustanddust/ui/Label.java +++ b/core/src/ch/asynk/rustanddust/ui/Label.java @@ -17,11 +17,23 @@ public class Label extends Widget this(font, 0f); } + public Label(String text, BitmapFont font) + { + this(font, 0f); + write(text); + } + public Label(BitmapFont font, float padding) { this(font, padding, Position.MIDDLE_CENTER); } + public Label(String text, BitmapFont font, float padding) + { + this(font, padding, Position.MIDDLE_CENTER); + write(text); + } + public Label(BitmapFont font, float padding, Position position) { super(); -- cgit v1.1-2-g2b99