(solved) Text of TaharezLook/Button missing (not appearing)
Posted: Tue Jan 29, 2008 12:40
Hello,
I am using CEGUI in a Ogre application to make buttons, menus, etc.
I have a layout definition like this for a "quit" button:
This is the code I use to load the layout into the Ogre application:
The Iconified-12 font is present in the resources.cfg file of the Ogre app. Its contents are:
The file Iconiv2.ttf is also present.
The problem is that the "Exit" text of the button (which was specified in the layout) does not appear inside the button when the app is executed.
Does anyone know what's causing this? I am using Linux, CEGUI 0.5.0 and Ogre 1.4.5.
Before I was creating the same button directly in the source code. And it worked, the button text appeared.
Thanks
I am using CEGUI in a Ogre application to make buttons, menus, etc.
I have a layout definition like this for a "quit" button:
<Window Type="TaharezLook/Button" Name="quit" >
<Property Name="Font" Value="Iconified-12" />
<Property Name="Text" Value="Exit" />
<Property Name="Alpha" Value="0.3" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="ClippedByParent" Value="False" />
<Property Name="UnifiedAreaRect" Value="{{0.465,0},{0.508078,0},{0.715,0},{0.758078,0}}" />
</Window>
This is the code I use to load the layout into the Ogre application:
mRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr);
mSystem = new CEGUI::System(mRenderer);
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme");
mSystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
CEGUI::WindowManager *win = CEGUI::WindowManager::getSingletonPtr();
CEGUI::Window* myRoot = win->loadWindowLayout("app.layout");
CEGUI::System::getSingleton().setGUISheet(myRoot);
The Iconified-12 font is present in the resources.cfg file of the Ogre app. Its contents are:
<?xml version="1.0" ?>
<Font Name="Iconified-12" Filename="Iconiv2.ttf" Type="FreeType" Size="12" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>
The file Iconiv2.ttf is also present.
The problem is that the "Exit" text of the button (which was specified in the layout) does not appear inside the button when the app is executed.
Does anyone know what's causing this? I am using Linux, CEGUI 0.5.0 and Ogre 1.4.5.
Before I was creating the same button directly in the source code. And it worked, the button text appeared.
Thanks