Having issues getting started with scene2d.ui

I’m trying to figure out how to use scene2d.ui and i’m having a bit of trouble. I’ve been looking around but most of the documentation I found is out of date…and others I can’t tell if it’s old or new. Can anyone point me in the right direction or give me some tips/suggestions? My game will mainly consist of menu screens. It’s a tycoon game. You will purchase inventory, upgrades, etc. Then you start the day and it’s all automated and will show the screen of customers walking to the store and purchasing. This will either be an isometric area or orthogonal.

Thanks guys!

A quick search on google revealed this:
http://code.google.com/p/libgdx/wiki/scene2dui

That’s from the LibGDX wiki so if that’s not up to date I don’t know what is :wink:

Thanks. I’ve already found that. That’s the one resource i’ve been using but it doesn’t necessarily get me started. I’ve read over it and I see the components of scene2d.ui…But I don’t know how to apply it.

Have you read the first link on that page? It’s basically a crash-course in scene2d and how to use it for UIs. It got me started just fine on writing UIs for libGDX applications and I recommend reading all of the libGDX wiki for more.

What I’d suggest doing is just playing around with it, create a different project to get used to it. Look up some example code or project and copy that code and just, well, play with it!

That’s basically what i’m doing. The problem i’m having really is with Skin. I’ve found this: http://code.google.com/p/libgdx/wiki/Skin
But i’m having trouble getting it to work.

You can download the default font and default skin from the Github Repo. Here is a ZIP of it for your convenience:

Place in “assets/data” of your Android project folder.

See here for a small demo using Skin, Table and TextButton:

I would suggest getting comfortable with scene2D UI before trying to design your own skin.

You’re awesome man! Thank you!

Now to get to work. Would it be too difficult to make a tabbed interface with scene2d.ui?

Tabs are just buttons with a ButtonGroup and a listener to change the tab actor.