summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-21 22:18:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-21 22:18:31 +0100
commit301bfbb899e1e77a031256affac5027a069a91f4 (patch)
tree07e52f20e4dce7a5b84bb72eeb9c78e1c96a802a /core/src
parent4adf13571e9ddc119adea434cfdc514d0d80a9c6 (diff)
downloadRustAndDust-301bfbb899e1e77a031256affac5027a069a91f4.zip
RustAndDust-301bfbb899e1e77a031256affac5027a069a91f4.tar.gz
Label: add String text to constructors
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/Label.java12
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();