Slick Forums

Discuss the Slick 2D Library
It is currently Tue Jun 18, 2013 10:44 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue Feb 09, 2010 11:07 pm 
Offline

Joined: Wed Jan 27, 2010 4:23 pm
Posts: 10
Hello. I have recently started writing a GUI library. It uses slick for its rendering and can be integrated into a slick program with only 6 lines of code. Works as a standalone GUI app or in-game GUI overlay.

It is skinnable, but so far I have only created one WinXP-like skin.
It is swing-like with its API being very similar to the SUI library created by davedes.

Here is a screenshot
Image

and the WebStart demo:
http://www.tireswinggames.com/gui/launch.php

It is BSD and hosted at https://code.google.com/p/tireswing-gui/ I think it is almost to a place where it might be useful to someone.

I'd be interested in reading what you guys think.

-Joe


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 09, 2010 11:24 pm 
Offline
Regular

Joined: Sun Oct 05, 2008 9:24 pm
Posts: 173
wow! Very nice. :)

I looked at the demo source and looks very clean and easy to use. Reminds me of swing, swt, etc.

Any plans on adding support for Text areas and tabs?

Quote:
It is skinnable, but so far I have only created one WinXP-like skin.


What will be the theme support, xml? I seen a .png in the source, but no xml files.

It looks very promising, good job :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 09, 2010 11:33 pm 
Offline
Regular

Joined: Sun Dec 07, 2008 5:22 am
Posts: 238
Location: Vancouver, BC, Canada
Looks pretty good.

Noticed a bug though. When you shrink the window, scroll bars appear to navigate the window contents which is good. But if you scroll away from the top left and then grow the window again it does not properly reposition the contents of the window.

Anyway keep up the good work.

_________________
If at first quads don't succeed tri tri again.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 09, 2010 11:37 pm 
Offline

Joined: Wed Jan 27, 2010 4:23 pm
Posts: 10
Quote:
Any plans on adding support for Text areas and tabs?

Yes, up next is Text Area, List Box, Progress bar, Dropdown box, Tab Panel, and Tree View and layouts.

Quote:
What will be the theme support, xml? I seen a .png in the source, but no xml files.

Theme support is done like it was in SUI. A skin consists of Java classes that render the controls. So right now, the XP skin is hard-coded. I probably will write a Skin that renders based on an XML file as that would make the library more useful, but that will likely be after the above listed widgets are finished.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 09, 2010 11:39 pm 
Offline

Joined: Wed Jan 27, 2010 4:23 pm
Posts: 10
Quote:
Noticed a bug though. When you shrink the window, scroll bars appear to navigate the window contents which is good. But if you scroll away from the top left and then grow the window again it does not properly reposition the contents of the window.


Ah, thanks! I hadn't noticed that yet. Fixed now! :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 10, 2010 6:54 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Truely Awesome.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 10, 2010 3:00 pm 
Offline

Joined: Tue Mar 24, 2009 10:51 am
Posts: 58
Argh, I would have loved this, 1 month earlier :?

Nice job whatever.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 11, 2010 10:47 pm 
Offline

Joined: Wed Jan 27, 2010 4:23 pm
Posts: 10
Just a quick update. I added a text area component and hopefully my webstart demo supports Linux and MacOS now. I can't test on Mac and won't be able to test on Linux until later tonight, though. Hopefully it works OK.

Cheers,
Joe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 12, 2010 4:30 am 
Offline
User avatar

Joined: Tue Dec 25, 2007 7:23 pm
Posts: 45
Location: Iowa, US
FYI I does work on my Mac Intel. Very nice work, keep it up!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 12, 2010 11:14 pm 
Offline

Joined: Wed Jan 27, 2010 4:23 pm
Posts: 10
b2s,
Thanks for testing it on Mac. Good to hear that it works.

I've also updated again. Added a list box and progress bar and fixed a few issues with the text area.

I should be packaging a release very soon.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 13, 2010 1:48 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1188
Not bad,

but from the first look at the code I would say you will have trouble to make it fully themable/skinable.

May I ask why you have both direct event handlers (eg onMouseClick) and listeners ?

Ciao Matthias

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 14, 2010 1:05 am 
Offline

Joined: Wed Jan 27, 2010 4:23 pm
Posts: 10
Matthias,

Thanks for the comments. I agree there are a few changes that need to be made to fully support skins. But I will be working on an XML-based skin next. But it will/already does support skinning, even if the skins are somewhat difficult to create at the moment.

As for direct event handlers and listeners, the direct event handlers are used internally for components to natively respond to user input. This is a preference of mine not to have to create a listener class just to make a button enter the down state when the mouse button is pressed.

However, I think listeners are a more convenient way for the users of the library to act on events such as when a button is clicked. I did not want the user to have to derive a subclass to do handle a button click. Event handlers seem to be the best solution.

I'm not sure if what I'm doing is "correct Java style" (it does seem to be the approach of the .NET framework, etc.) but it seems to work nicely and from the user's standpoint, listeners are all that are needed.

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 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