Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Having issues getting started with scene2d.ui  (Read 656 times)
0 Members and 1 Guest are viewing this topic.
Offline Bassex96

Senior Member


Medals: 4



« Posted 2013-09-15 03:04:09 »

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!
Online Slyth2727
« Reply #1 - Posted 2013-09-15 03:07:11 »

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

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline Bassex96

Senior Member


Medals: 4



« Reply #2 - Posted 2013-09-15 03:08:29 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online BurntPizza
« Reply #3 - Posted 2013-09-15 03:13:34 »

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.
Online Slyth2727
« Reply #4 - Posted 2013-09-15 03:14:19 »

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!

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline Bassex96

Senior Member


Medals: 4



« Reply #5 - Posted 2013-09-15 03:28:33 »

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.
Offline davedes
« Reply #6 - Posted 2013-09-15 14:48:58 »

You can download the default font and default skin from the Github Repo. Here is a ZIP of it for your convenience:
https://www.dropbox.com/s/6cvgx7h0he4btvq/libgdx-skin.zip

Place in "assets/data" of your Android project folder.

See here for a small demo using Skin, Table and TextButton:
https://gist.github.com/mattdesl/5461944

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

Offline Bassex96

Senior Member


Medals: 4



« Reply #7 - Posted 2013-09-17 18:36:32 »

You're awesome man! Thank you!

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

JGO Kernel


Medals: 147
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #8 - Posted 2013-09-17 19:35:28 »

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

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (8 views)
2014-09-21 01:30:30

BurntPizza (9 views)
2014-09-21 00:34:41

moogie (10 views)
2014-09-21 00:26:15

UprightPath (23 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (70 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!