Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 26, 2013 7:09 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: too much configuration
PostPosted: Fri Jun 22, 2012 10:03 am 
Offline

Joined: Fri Jun 22, 2012 9:28 am
Posts: 1
Hi

I just thought, I should give TWL a chance to be my gui toolkit. My alternative would be to use Swing with a little window that does all the opengl stuff. I haven't done very much yet, except porting the game ui to scala.

The biggest difference from TWL to Swing is that in TWL, there is theme management spread all over my code. In swing I have this one line that selects the Nimbus look-and-feel which is preinstalled, and I am done and happy. It would also work without that line. Then I started TWL and instantly xml was important. I had to solve dependencies to images, and some other cross references in the examples. As a developer I really much prefer convention over configuration. Give me a default theme that always works and is used as a fallback solution if my theme fails, but hide any xml configuration from me away until I really want to create my own themes.

Then as a scala developer I would like to ask, how is the SCALA api? I just found out that two years ago there was something with it. But both TWL and Scala are developing quite fast, so is the Scala Api outdatet or still state of the art?


Top
 Profile  
 
PostPosted: Fri Jun 22, 2012 1:44 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
I'm sorry but TWL is not named Themeable Widget Library. It needs to be themed. In Swing you load the Nimbus LookAndFeel and this will also be loaded :) TWL just gives you an easy to use Theme Editor (start with the simple.xml) and a Swing like GUI creating.

Just give it some time. You will see that it's waaaay better then Swing. Swing is so hard to implement your own Widgets, while in TWL you have easy and full control.

_________________
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  
 
PostPosted: Fri Jun 22, 2012 6:34 pm 
Offline
Oldbie

Joined: Thu Mar 15, 2012 12:38 am
Posts: 261
All of the theming and "extra" stuff when compared to Swing may look daunting at first, but if you spend a weekend really going over it, you'll find that it is WAY better than Swing in terms of easily customizing how you want everything to look.

Plus, it easily integrates into Slick2D.

I highly suggest this library and that you take the time to figure it out :)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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