Hello! A quick one...
Is it possible to rotate only a single ImageryComponent within a widget via code or XML? Maybe rotating only the area inside?
Thanks!
[SOLVED] ImageryComponent rotation
Moderators: CEGUI MVP, CEGUI Team
[SOLVED] ImageryComponent rotation
Last edited by kiske1 on Tue Aug 30, 2016 19:43, edited 1 time in total.
Re: ImageryComponent rotation
As of now, no way to rotate anything there. You can only rotate the entire widget.
What is your use-case? Do you intend to rotate by multiples of 90° to reuse imagery or something else?
What is your use-case? Do you intend to rotate by multiples of 90° to reuse imagery or something else?
CrazyEddie: "I don't like GUIs"
Re: ImageryComponent rotation
Thank you for the answer, the use case is a button wich holds an image inside a frame. The frame is slightly rotated, so the image in the imagerycomponent is rotated too. To achieve this I put the image already rotated in the imageset, but this is a waste of imageset space, so I thought about rotating the image after the widget creation.
I think I'll go with creating my own class wich manages the two separate widgets as one.
I think I'll go with creating my own class wich manages the two separate widgets as one.
Re: ImageryComponent rotation
Why not use a child widget just for the image?
CrazyEddie: "I don't like GUIs"
Re: ImageryComponent rotation
Ident wrote:Why not use a child widget just for the image?
Yes! that's what I've finally done...
Re: [SOLVED] ImageryComponent rotation
Ok great! Thanks for marking it solved.
CrazyEddie: "I don't like GUIs"
Who is online
Users browsing this forum: Google [Bot] and 5 guests