From 9b8ee4ab68fe676dd9752907b950f3514332a520 Mon Sep 17 00:00:00 2001 From: SimonIT Date: Wed, 18 Dec 2019 09:27:39 +0100 Subject: possibility to change the font of a label --- core/src/ch/asynk/gdx/boardgame/ui/Label.java | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.1-2-g2b99 From a1ff3c6277af20b47908c7e8ebc1fd9bc8864130 Mon Sep 17 00:00:00 2001 From: SimonIT Date: Wed, 18 Dec 2019 10:40:52 +0100 Subject: taint on changing the font --- core/src/ch/asynk/gdx/boardgame/ui/Label.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Label.java b/core/src/ch/asynk/gdx/boardgame/ui/Label.java index 5b1962c..dcae8f0 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Label.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Label.java @@ -34,6 +34,7 @@ public class Label extends Element public void setFont(BitmapFont font) { this.font = font; + taint(); } public String getText() -- cgit v1.1-2-g2b99