Slick Forums

Discuss the Slick 2D Library
It is currently Wed May 22, 2013 5:42 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Documentation
PostPosted: Tue Oct 11, 2011 7:47 pm 
Offline

Joined: Tue Oct 11, 2011 7:30 pm
Posts: 3
I saw a previous post on this but didn't really see a good answer.

Is there any documentation anywhere describing how to use TWL in a bit more detail? I have looked at the demo's, I've tried to look at the eforen them file (which is complicated).

There isn't anything anywhere describing how the xml relates to the java usage (like mapping the eforen images to a window). I'd like to use TWL but I'm struggling a bit with information on how to use the API in a more complicated way.

Examples are good but they don't really tell why things are done and how to do things slightly differently

I suspect the answer is that there isn't any, but just wanted to check :D

If the answer is no, I have some questions.

What is the strategy with panels? I tried to create a scrollpanel but it only allowed me to add one item (setContent), is the position you set relative to the container its in? So if I have a panel, and add a button. Is the button position relative to the panel or the whole window? Can someone explain how I can create a tree like structure like in theme editor (with the arrows)? Which widget is that?

Also how do I get the theme editor to see all the other widgets it doesn't show? Like the Scroll Panel

Hope you don't mind me asking lots of question here, I'm new to this but like the idea of using this to create a great UI in opengl


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2011 5:08 pm 
Offline

Joined: Thu Jul 28, 2011 3:21 pm
Posts: 17
Location: Hungary
I not found any good documentation too sadly.

You can make a Scroll pane this way:

Code:
    private ScrollPane scroller = new ScrollPane();
    private Widget container = new Widget();


Code:
        scroller.setContent(container);
        add(scroller);


Code:
container.add(new YourWidget());


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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