diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/ui/Label.java | 12 |
1 files changed, 12 insertions, 0 deletions
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(); |