I've been learning scene2d but I don't fully get skins and tablelayout. How would I, for example, create a simple ImageButton and draw it on the screen?
I have a stage, table and skin. I added a texture to the skin like so
1
| skin.add("bluebutton", new Texture(Gdx.files.internal("ui/bluebutton.png")), Texture.class); |
, but how do I set the position of the ImageButton and draw it on the screen? ImageButton has constructors which take a skin, ImageButtonStyle and drawable, but I'm not sure which one to use?