StaticImage 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

jeladi
Just popping in
Just popping in
Posts: 2
Joined: Wed Jul 22, 2015 16:48

StaticImage Rotation

Postby jeladi » Fri May 29, 2020 15:45

I have a layout file I created in CEED that contains a StaticImage that is displayed on the lower right corner of the screen. I would like this image to be able to rotate when the mouse is moved while the left mouse button is pressed. If I do not set the rotation the image is displayed on the screen without a problem. However, if I call setRotation() the image is replaced by a white square. The square does rotate. This white square also grows in size depending on how the mouse is moved even though I am not doing anything with the size in the code. Does anyone have any ideas on what could be causing this? Is StaticImage the correct thing to use in this situation?

The StaticImage is defined in the layout file like this:

<Window type="Vanilla/StaticImage" name="Compass" >
<Property name="Area" value="{{0,-16},{0,-16},{0,112},{0,112}}" />
<Property name="Image" value="Vanilla-Images/Compass" />
<Property name="MaxSize" value="{{1,0},{1,0}}" />
<Property name="FrameEnabled" value="false" />
<Property name="BackgroundEnabled" value="false" />
<Property name="VerticalAlignment" value="Bottom" />
<Property name="HorizontalAlignment" value="Right" />
</Window>

Here is an excerpt from the log file. I didn't see any warnings in the log regarding the StaticImage.

29/05/2020 10:23:34 (Std) ********************************************************************************
29/05/2020 10:23:34 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
29/05/2020 10:23:34 (Std) ********************************************************************************
29/05/2020 10:23:34 (Std) ---- Version: 0.8.7 (Build: Jan 27 2017 Microsoft Windows g++ 5.4.0 32 bit) ----
29/05/2020 10:23:34 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
29/05/2020 10:23:34 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
29/05/2020 10:23:34 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
29/05/2020 10:23:34 (Std) ---- Scripting module is: None ----
29/05/2020 10:23:34 (Std) ********************************************************************************
29/05/2020 10:23:34 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *

niello
Quite a regular
Quite a regular
Posts: 76
Joined: Tue May 24, 2011 05:54
Contact:

Re: StaticImage Rotation

Postby niello » Wed Jan 19, 2022 08:31

Hi.

Currently rotation works only for widows with a rendering surface enabled. Try to enable it in your static window.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests