2 years ago

#62494

test-img

primix

LibGDX TextButton removes numbers from string

I have been having a unique problem with the LibGDX TextButton. In some cases, when setting the text of the button, the string lacks numbers (even though they are present in the string which can be seen in the output). Here is an example:

enter image description here

The string should be dates, e.g. January 8th, 1997. Does anyone know how I could solve this problem?

Edit: Code for adding the buttons

TextButton button = new TextButton("", skin) //initialized as empty until API call is done
button.setText(text); //set after API call is finalized by first retrieving from stage root by name (stage.getRoot().find("button");

java

libgdx

scene2d

0 Answers

Your Answer

Accepted video resources