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 -------- *
StaticImage Rotation
Moderators: CEGUI MVP, CEGUI Team
Re: StaticImage Rotation
Hi.
Currently rotation works only for widows with a rendering surface enabled. Try to enable it in your static window.
Currently rotation works only for widows with a rendering surface enabled. Try to enable it in your static window.
Who is online
Users browsing this forum: No registered users and 10 guests