Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 3:23 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Basic GUI Tutorial?
PostPosted: Wed Jul 04, 2012 5:53 pm 
Offline

Joined: Wed Jul 04, 2012 5:49 pm
Posts: 1
Hi, I'm looking for any GUI tutorials for Slick. I have seen both of Slick's MouseListener and MouseOverArea in the Javadoc, but I don't know how to use them to their fullest extent. Does anyone know of a good tutorial, or can you tell me how you learned it? Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Basic GUI Tutorial?
PostPosted: Sat Jul 07, 2012 4:31 pm 
Offline

Joined: Sat Jun 23, 2012 4:14 pm
Posts: 74
Location: Germany
WHOWANTSAKOOKIE wrote:
Hi, I'm looking for any GUI tutorials for Slick. I have seen both of Slick's MouseListener and MouseOverArea in the Javadoc, but I don't know how to use them to their fullest extent. Does anyone know of a good tutorial, or can you tell me how you learned it? Thanks in advance!


Welcome to the forum! Yeah I wondered about that too and here is an example how you can do it with MouseOverArea:
https://bitbucket.org/kevglass/slick/src/23a67408b3a1/trunk/Slick/src/org/newdawn/slick/tests/GUITest.java

Nevertheless, does anybody know about a simple UI library (possibly build on top of Slick2D) with components like DropDownMenu, ProgressBar and the like? If there isn't, it shouldn't be too complex to build one and I'll most likely build one myself eventually. :)

Edit: Okay I've found this thread, but it seems to be inactive.


Top
 Profile  
 
 Post subject: Re: Basic GUI Tutorial?
PostPosted: Sat Jul 07, 2012 5:43 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
Don't think it is that easy to build an UI Engine. If it should be flexible you will have a lot of work to do. TWL is a prove for this. You can use TWL inside Slick2D without problem. TWL is for complex GUI's with layout and such.

If you just need a simple In-Game-GUI, you can just make some simple class to provide you with buttons (since you mostly need buttons).

_________________
Current Projects:
Image Mr. Hat I
Image Vegan Vs. Zombies
Projects:
RadicalFish Engine - Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!


Top
 Profile  
 
 Post subject: Re: Basic GUI Tutorial?
PostPosted: Sat Jul 07, 2012 10:41 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1188
TWL can also be used for simple game UIs with manually positioning of widgets - just take a look at the Game UI Demo source (ignore all that wheel stuff - this should get it's own demo).

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: Basic GUI Tutorial?
PostPosted: Sat Jul 07, 2012 11:38 pm 
Offline

Joined: Sat Jun 23, 2012 4:14 pm
Posts: 74
Location: Germany
Thanks for the advice!

R.D. wrote:
Don't think it is that easy to build an UI Engine. If it should be flexible you will have a lot of work to do. TWL is a prove for this. You can use TWL inside Slick2D without problem. TWL is for complex GUI's with layout and such.

If you just need a simple In-Game-GUI, you can just make some simple class to provide you with buttons (since you mostly need buttons).

Yeah, I thought of relatively basic stuff.

MatthiasM wrote:
TWL can also be used for simple game UIs with manually positioning of widgets - just take a look at the Game UI Demo source (ignore all that wheel stuff - this should get it's own demo).

Great :), I'll try that library out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group