Demo 8, where can I get the source ?

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
yizhong
Just popping in
Just popping in
Posts: 14
Joined: Wed Jan 12, 2005 12:06

Demo 8, where can I get the source ?

Postby yizhong » Wed Nov 03, 2004 01:23


User avatar
Falagard
Just popping in
Just popping in
Posts: 12
Joined: Wed Jan 12, 2005 12:06

Demo 8, where can I get the source ?

Postby Falagard » Wed Nov 03, 2004 11:49

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

User avatar
Banania
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Wed Jan 12, 2005 12:06
Location: Paris, France

Demo 8, where can I get the source ?

Postby Banania » Wed Nov 03, 2004 12:56

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.
Banania

User avatar
Banania
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Wed Jan 12, 2005 12:06
Location: Paris, France

Demo 8, where can I get the source ?

Postby Banania » Thu Nov 04, 2004 16:45

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.
Banania

User avatar
Banania
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Wed Jan 12, 2005 12:06
Location: Paris, France

Demo 8, where can I get the source ?

Postby Banania » Thu Nov 04, 2004 16:58

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.
Banania


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests