CELayoutEditor : Set the Parent Size according the Child

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

CELayoutEditor : Set the Parent Size according the Child

Postby xabila » Mon Apr 06, 2009 12:03

Hi,
With all my GUI, lots of time i have to reduce the parent size according to the child size/aspect.
But Right now ( or i'm missing something, an option maybe) reducing the parent size implies reducing the child.

Is there a way to do (avoid) that ?
Thanks

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Apr 06, 2009 19:08

Hi,

This issue isn't easy to work around, because it's one of Cegui's by nature behaviour aspects.

However since you are not the first to mention this problem, it's certainly something for which i am considering a nice solution. But it's pretty tough: when resizing a parent, each direct window's position should be stored, when it's a relative position. Then, after the resize of the parent, the stored values should be re-calculated, but now with regards to the new parent's size.

Okay okay, it's not that hard, but i need to see how this would fit within the current code base. Maybe with an internal temp selection or so.
Check out my released snake game using Cegui!

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

Postby xabila » Mon Apr 06, 2009 20:45

Could be SO NICE ;)
Thanks


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 8 guests