summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-18 10:54:43 +0100
committerGitHub <noreply@github.com>2019-12-18 10:54:43 +0100
commit4d3f9c7a3e4996bb99478ba26d317b11231b2a5e (patch)
treed7909e35cfe2ab573ae5d09402987fb5ee7f11d8 /core/src/ch/asynk
parentb5dee2dc2d6efd124d2e26a3f1c96d28e55329e3 (diff)
parenta1ff3c6277af20b47908c7e8ebc1fd9bc8864130 (diff)
downloadgdx-boardgame-4d3f9c7a3e4996bb99478ba26d317b11231b2a5e.zip
gdx-boardgame-4d3f9c7a3e4996bb99478ba26d317b11231b2a5e.tar.gz
Merge pull request #11 from SimonIT/change-label-fonts
Possibility to change the font of a label
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Label.java6
1 files changed, 6 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..dcae8f0 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Label.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Label.java
@@ -31,6 +31,12 @@ public class Label extends Element
this.layout = new GlyphLayout();
}
+ public void setFont(BitmapFont font)
+ {
+ this.font = font;
+ taint();
+ }
+
public String getText()
{
return text;