summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-17 12:19:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-12-17 12:19:31 +0100
commitb9f8b1d6b136d565cd0a8e18040eaff621a91c4d (patch)
tree57b78c38d66fd275a3c006fe152840384cd051b0 /core/src
parente7a176f69cb11dda58f05347349ce096bc7f3008 (diff)
downloadgdx-boardgame-b9f8b1d6b136d565cd0a8e18040eaff621a91c4d.zip
gdx-boardgame-b9f8b1d6b136d565cd0a8e18040eaff621a91c4d.tar.gz
Label : add String getText()
Diffstat (limited to 'core/src')
-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 190dd83..2d1e6d4 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 String getText()
+ {
+ return text;
+ }
+
public void write(String text)
{
write(text, getX(), getY());