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
CELayoutEditor : Set the Parent Size according the Child
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
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.
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!
Return to “Unofficial CEGUI-Related Tools”
Who is online
Users browsing this forum: No registered users and 3 guests