Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2013 10:26 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jun 21, 2012 10:01 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
I just tested it and it's not ma recursive loop which creates this. This simple example shows it:

Code:
   PropertySheet propertySheet = new PropertySheet();
   propertySheet.setTheme("table");

   SimplePropertyList list = new SimplePropertyList("debug");
   SimplePropertyList map = new SimplePropertyList("map");
   map.addProperty(new SimpleProperty<String>(String.class, "checklayers", "true"));
   list.addProperty(map);
   SimplePropertyList rect = new SimplePropertyList("rect");
   rect.addProperty(new SimpleProperty<String>(String.class, "collision",  "true"));
   rect.addProperty(new SimpleProperty<String>(String.class, "position",  "true"));
   list.addProperty(rect);
   SimplePropertyList xml = new SimplePropertyList("rect");
   xml.addProperty(new SimpleProperty<String>(String.class, "animations",  "true"));
   list.addProperty(xml);

   SimplePropertyList list2 = new SimplePropertyList("gui");
   map.addProperty(new SimpleProperty<String>(String.class, "map", "bla/a/path"));
      
   propertySheet.getPropertyList().addProperty(list);
   propertySheet.getPropertyList().addProperty(list2);

   ScrollPane scrollPane = new ScrollPane(propertySheet);
      
   add(scrollPane);



but this class into a widget like a resizable frame and it will throw warnings of layout loop that are detected. Dunno what to do to behonest. Is it the PropertySheet which does not like that many sub lists? or is it the TreeTable?

_________________
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 5:50 am 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1171
Can you make a more complete example/test case - eg one which uses simple.xml from the TWLExamples and can be just put into that folder for running?

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
PostPosted: Fri Jun 22, 2012 9:35 am 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
Sure, i just PropertySheetDemoDialog and added some lists:
http://pastebin.com/zbmHXiuU

_________________
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:18 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1171
The layout loop bug should be fixed now.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
PostPosted: Fri Jun 22, 2012 8:32 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
Yepp :) Really nice. Also the new layout feature is there /o

_________________
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  
 
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: Google [Bot] 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