So i want to create a mainmenu for my game and i\'m stuck on what to do next i have all the art done and it\'s all in layers and packed in a .pack
public class M
Basically you need to 1. create a skin, and 2. we need to add buttionTextureStyle to it. 3. Don't forget to add fonts, it took me a hour to figure out that fonts are not set by default like other parameters of buttonTextureStyle 4. and then you create a button with created skin 5. and then add that button to the stage.
Phew! I have found it helpful, Maybe it can help you as well: http://www.sadafnoor.com/blog/how-to-create-simple-menu-in-libgdx/
i think it will be easy if u use scene2D that will handle all the complexity and help you to create a nice looking UI with a little bit of code .
you may need to check this link https://github.com/libgdx/libgdx/wiki/Scene2d.ui
Have a look at this tutorial which sums up what you want exactly:
LibGDX: Using a Splash Screen or Menu