diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-18 10:54:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-18 10:54:43 +0100 |
commit | 4d3f9c7a3e4996bb99478ba26d317b11231b2a5e (patch) | |
tree | d7909e35cfe2ab573ae5d09402987fb5ee7f11d8 /core/src/ch/asynk/gdx/boardgame/ui | |
parent | b5dee2dc2d6efd124d2e26a3f1c96d28e55329e3 (diff) | |
parent | a1ff3c6277af20b47908c7e8ebc1fd9bc8864130 (diff) | |
download | gdx-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/gdx/boardgame/ui')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Label.java | 6 |
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; |