[SOLVED] ImageryComponent rotation

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

kiske1
Just popping in
Just popping in
Posts: 17
Joined: Fri May 20, 2016 11:53

[SOLVED] ImageryComponent rotation

Postby kiske1 » Fri Aug 26, 2016 10:16

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!
Last edited by kiske1 on Tue Aug 30, 2016 19:43, edited 1 time in total.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: ImageryComponent rotation

Postby Ident » Fri Aug 26, 2016 16:58

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?
CrazyEddie: "I don't like GUIs"

kiske1
Just popping in
Just popping in
Posts: 17
Joined: Fri May 20, 2016 11:53

Re: ImageryComponent rotation

Postby kiske1 » Mon Aug 29, 2016 06:45

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.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: ImageryComponent rotation

Postby Ident » Tue Aug 30, 2016 19:26

Why not use a child widget just for the image?
CrazyEddie: "I don't like GUIs"

kiske1
Just popping in
Just popping in
Posts: 17
Joined: Fri May 20, 2016 11:53

Re: ImageryComponent rotation

Postby kiske1 » Tue Aug 30, 2016 19:43

Ident wrote:Why not use a child widget just for the image?


Yes! that's what I've finally done... :wink:

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [SOLVED] ImageryComponent rotation

Postby Ident » Tue Aug 30, 2016 19:44

Ok great! Thanks for marking it solved.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 5 guests