Page 1 of 1
Demo 8, where can I get the source ?
Posted: Wed Nov 03, 2004 01:23
by yizhong
Demo 8, where can I get the source ?
Posted: Wed Nov 03, 2004 11:49
by Falagard
Ya, but it doesn't include the source, as per your readme, where you say "First of all please note that the scripting support demonstrated here is not
yet publicly available, , this is why this demo is binary only."
Clay
Demo 8, where can I get the source ?
Posted: Wed Nov 03, 2004 12:56
by Banania
I don't think it is available. demo 8 was meant to show the xml layout and the work CE did on the lua script module.
The lua script module is not completed yet so there is no point in distributing the source code for that.
Then , the only difference with demo 7 would be the xml layout, so pretty much everything is in the .xml file.
Demo 8, where can I get the source ?
Posted: Thu Nov 04, 2004 16:45
by Banania
First, check that you link with the proper libraries : CEGUIBase_d.lib CEGUITaharezLook_d.lib and OgreGUIRenderer_d.lib for Ogre in debug mode
Here is a code that should work to load a .xml file if you change the path of the files.
Code: Select all
mGUIRenderer = new CEGUI::OgreRenderer(window, RENDER_QUEUE_OVERLAY, false, 3000);
new CEGUI::System(mGUIRenderer);
// load scheme and set up defaults
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"../../Media/datafiles/schemes/TaharezLook.scheme");
CEGUI::System::getSingleton().setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
CEGUI::System::getSingleton().setDefaultFont((CEGUI::utf8*)"Tahoma-12");
CEGUI::System::getSingleton().setGUISheet(CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"../../Media/datafiles/schemes/GUIlayout.xml"));
Well, it works for me.
In case of problems, check the CEGUI.log, it is gonna tell you if a file is missing.
Hope it can help you.
Demo 8, where can I get the source ?
Posted: Thu Nov 04, 2004 16:58
by Banania
You're welcome !
I spent a lot of time trying to understand this kind of things when I started playing with CEGUI. So, I am happy to help if I can.