summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimonIT <simonit.orig@gmail.com>2019-12-18 09:27:39 +0100
committerSimonIT <simonit.orig@gmail.com>2019-12-18 09:27:39 +0100
commit9b8ee4ab68fe676dd9752907b950f3514332a520 (patch)
tree0b1bfbc31f2c8c86335fed250a01da5a76351859 /core
parent11e02bbeefee419ce722516dfd0a24cf2be47e14 (diff)
downloadgdx-boardgame-9b8ee4ab68fe676dd9752907b950f3514332a520.zip
gdx-boardgame-9b8ee4ab68fe676dd9752907b950f3514332a520.tar.gz
possibility to change the font of a label
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Label.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Label.java b/core/src/ch/asynk/gdx/boardgame/ui/Label.java
index 2d1e6d4..5b1962c 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Label.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Label.java
@@ -31,6 +31,11 @@ public class Label extends Element
this.layout = new GlyphLayout();
}
+ public void setFont(BitmapFont font)
+ {
+ this.font = font;
+ }
+
public String getText()
{
return text;