Ogre: 104
CEGUI 040
MS Dev: 7.1
I have compiled (serveral times now) the 040 CEGUI lib and the only issue I have is that the StaticImage no longer displays my background image properly. The only thing that has changed in the CEGUI lib...
Here is how the screen is suppose to look:
(white boxes are there on purpose to blank out information).

But here is how it is appearing in CEGUI in the StaticImage window:
Note how the bottom of the image exceeds the window rect boundry.

Here is my ImageSet definition
Code: Select all
<?xml version="1.0" ?>
<Imageset Name="IntroImageset" Imagefile="Intro.png" NativeHorzRes="1024" NativeVertRes="768" AutoScaled="true">
<Image Name="Intro" XPos="0" YPos="0" Width="1024" Height="768" />
</Imageset>
Here is my Intro.XML file:
Code: Select all
<?xml version="1.0" ?>
<GUILayout>
<Window Type="TaharezLook/StaticImage" Name="Intro/StaticImage">
<Property Name="AbsoluteRect" Value="l:0.000000 t:0.000000 r:1024.000000 b:768.000000" />
<Property Name="ClippedByParent" Value="False" />
<Property Name="FrameEnabled" Value="True" />
<Property Name="RelativeRect" Value="l:0.000000 t:0.000000 r:1.000000 b:1.000000" />
</Window>
</GUILayout>
Here is the code in C++
Code: Select all
CEGUI::WindowManager& mWinMgr = CEGUI::WindowManager::getSingleton();
mRootWindow = mWinMgr.loadWindowLayout((CEGUI::utf8*)"Intro.xml");
CEGUI::System::getSingleton().getGUISheet()->addChildWindow(mRootWindow);
// Bind special pointers to the widgets
mIntroImage = static_cast<CEGUI::StaticImage*>(mWinMgr.getWindow((CEGUI::utf8*)"Intro/StaticImage"));
if (mIntroImage)
{
mIntroImage->setImage("IntroImageset", "Intro");
mIntroImage->setVisible(true);
mIntroImage->show();
}
Has something changed? Am I missing something?