As soon as I create a window like
Code: Select all
m_RootWindow = CEGUI::System::getSingleton().getGUISheet();
// Now we are gonna create zeh window.
// We must do this.
CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();
// We want a framewindow I guess.
CEGUI::FrameWindow* m_FrameWnd = (CEGUI::FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "TEst/MainWindow");
// Setting the layout.
m_FrameWnd = (CEGUI::FrameWindow*)CEGUI::WindowManager::getSingleton().loadWindowLayout("wnd.layout");
CEGUI::System::getSingleton().setGUISheet(m_FrameWnd);
m_FrameWnd->setPosition(CEGUI::Point(0.00f, 0.35f));
// Add to root.
m_RootWindow->addChildWindow(m_FrameWnd);
All other CEGUI windows disappear. Im not sure what ive done wrong. Im using CEGUI from yake(with ogre3d and such)
layout
Code: Select all
<?xml version="1.0" ?>
<GUILayout>
<Window Type="TaharezLook/FrameWindow" Name="Map/Main">
<Property Name="Size" Value="w:0.25 h:1" />
<Property Name="Position" Value="x:0.75 y:0" />
<Property Name="DragMovingEnabled" Value="false" />
<Property Name="RollUpEnabled" Value="true" />
<Property Name="CloseButtonEnabled" Value="false" />
<Property Name="Text" Value="Mapviewer" />
<Window Type="TaharezLook/Combobox" Name="Map/MeshBox">
<Property Name="Position" Value="x:0.05 y:0.05" />
<Property Name="Size" Value="w:0.9 h:0.3" />
<Property Name="Text" Value="Testing" />
<Property Name="ClippedByParent" Value="false" />
<Property Name="ReadOnly" Value="true" />
</Window>
</Window>
</GUILayout>
Could someone please tell me what I have done wrong?