been experimenting with loading a window with the xml way
i have a push button that calls
Code: Select all
bool HandleButtonSetUp(const CEGUI::EventArgs& e)
{
Window* Menu = WindowManager::getSingletonPtr()->loadWindowLayout("art/Setup/SetUp.xml");
return true;
}
at first press this inserts into the cegui log
(InfL1) ---- Successfully completed loading of GUI layout from 'art/Setup/SetUp.xml' ----
but no window appears on screen if i press the button a 2nd time i get an error and in cegui log
Error) Exception: WindowManager::createWindow - A Window object with the name 'SetUP' already exists within the system.
05/09/2006 19:06:04 (Error) Exception: GUILayout_xmlHandler::startElement - layout loading has been aborted since Window named 'SetUP' already exists.
05/09/2006 19:06:04 (Error) WindowManager::loadWindowLayout - loading of layout from file 'art/Setup/SetUp.xml' failed.
the xml file has only this in
Code: Select all
<?xml version="1.0" ?>
<GUILayout>
<Window Type="TaharezLook/FrameWindow" Name="SetUP">
<Property Name="RelativeMinSize" Value="w:320 h:320" />
<Property Name="RelativeMaxSize" Value="w:320 h:320" />
<Property Name="Position" Value="x:0 y:0" />
<Property Name="Size" Value="w:320 h:320" />
<Property Name="Text" Value="Test Window" />
<Property Name="CloseButtonEnabled" Value="true" />
<Property Name="FrameEnabled" Value="true" />
</Window>
</GUILayout>
where did i go wrong please
TIA