I am using Libgdx's Scene2D API to build bymy UI and everything has been working as expected until now. I created a Skin
and a TextureAtlas
and linked them as so:
And Finally, I added a Label
to the Table
:
Once I added the Table
to my Stage
, only the elements in it would show up and not the background image. I tried using background(String s)
, setBackground(String s)
, background(Drawable d)
, and setBackground(Drawable d)
. None of those 4 methods seemed to work for me.
I also tried calling pack()
and setFillParent(true)
but both of those made my table disappear. I have gone through just about every Google result and I can't find anyone else with my issue.
More info
Here is my uiskin.jsonuiskin.json
file