Menu System

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

rtr_18
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Aug 25, 2008 10:02

Menu System

Postby rtr_18 » Wed Jun 23, 2010 09:16

Hi!
I've to prepare a menu. In which I've to load four buttons in the initial page. If I click one button(e.g. Play button) the menu has to load with
two image holders and two buttons(back and next buttons). If I click the back button, I should be able to go to the initial page. Similarly next button
should take to the next page. For this purpose I wrote the following code:


Code: Select all
#include "irrlicht.h"
#include "CEGUI.h"
#include "CEGUIIrrlichtRenderer.h"
#include "CEGUIWindowManager.h"
#include "CEGUIExceptions.h"
#include "CEGUIDefaultResourceProvider.h"
#include "CEGUIButtonBase.h"
#include "CEGUIInputEvent.h"
#include "CEGUIEventArgs.h"
#include "CEGUIWindow.h"

using namespace std;
using namespace CEGUI;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
class InitialMenu
{
private:
WindowManager* wmgr;
Window* myRoot, *playWnd;
FrameWindow* fWnd;
DefaultResourceProvider* rp;
CEGUI::PushButton* play_btn, *options_btn, *credits_btn, *exit_btn;
CEGUI::Image* playercty_img, *oppcty_img;
CEGUI::Combobox* playercty_cbo, *oppcty_cbo;
CEGUI::PushButton* playMnuBack_btn, *playMnuNext_btn;
public:
InitialMenu()
{
rp = static_cast<DefaultResourceProvider*>(System::getSingleton().getResourceProvider());
rp->setResourceGroupDirectory ("schemes", "datafiles/schemes/");
rp->setResourceGroupDirectory ("imagesets", "datafiles/imagesets/");
rp->setResourceGroupDirectory ("fonts", "datafiles/fonts/");
rp->setResourceGroupDirectory ("layouts", "datafiles/layouts/");
rp->setResourceGroupDirectory ("looknfeel", "datafiles/looknfeel/");
rp->setResourceGroupDirectory ("lua_scripts", "../datafiles/lua_scripts/");
CEGUI::Imageset::setDefaultResourceGroup("imagesets");
CEGUI::Font::setDefaultResourceGroup("fonts");
CEGUI::Scheme::setDefaultResourceGroup("schemes");
CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeel");
CEGUI::WindowManager::setDefaultResourceGroup("layouts");
CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme","schemes" );
FontManager::getSingleton().createFreeTypeFont("DejaVuSans-10.font",10,false, "DejaVuSans.ttf");
WidgetLookManager::getSingleton().parseLookNFeelSpecification("TaharezLook.looknfeel", "looknfeel");
wmgr = WindowManager::getSingletonPtr();
myRoot = wmgr->createWindow("DefaultWindow", "root");
System::getSingleton().setGUISheet(myRoot);
fWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "");
fWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
fWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
fWnd->setText("Hello World!");
myRoot->addChildWindow(fWnd);
play_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "play_btn");
options_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "options_btn");
credits_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "credits_btn");
exit_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "exit_btn");
fWnd->addChildWindow(play_btn);
fWnd->addChildWindow(options_btn);
fWnd->addChildWindow(credits_btn);
fWnd->addChildWindow(exit_btn);
play_btn->setPosition(UVector2(UDim(0.25f, 0.25f), UDim(0.25f, 0.25f)));
play_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
options_btn->setPosition(UVector2(UDim(0.02f, 11.5f), UDim(0.05f, 11.5f)));
options_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
credits_btn->setPosition(UVector2(UDim(0.3f, 0.3f), UDim(0.3f, 0.3f)));
credits_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
exit_btn->setPosition(UVector2(UDim(0.39f, 0.6f), UDim(0.39f, 0.6f)));
exit_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
System::getSingleton().setDefaultFont("DejaVuSans-10.font");
System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");
System::getSingleton().setDefaultTooltip("TaharezLook/Tooltip");
play_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::playHandler, this));
options_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::optionsHandler, this));
credits_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::creditsHandler, this));
exit_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::exitHandler, this));
}

bool playHandler()
{
wmgr = WindowManager::getSingletonPtr();
playWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "");
playWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
playWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
System::getSingleton().setGUISheet(playWnd);
playercty_img = (Image*) wmgr->createWindow("TaharezLook/Image", "playercty_img");
oppcty_img = (Image*) wmgr->createWindow("TaharezLook/Image", "oppcty_img");
playercty_cbo = (Combobox*) wmgr->createWindow("TaharezLook/Combobox", "playercty_cbo");
oppcty_cbo = (Combobox*) wmgr->createWindow("TaharezLook/Combobox", "oppcty_cbo");
playMnuBack_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "playMnuBack_btn");
playMnuNext_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "playMnuNext_btn");
playWnd->addChildWindow(playercty_img->getName());
playWnd->addChildWindow(oppcty_img->getName());
playWnd->addChildWindow(playercty_cbo);
playWnd->addChildWindow(oppcty_cbo);
playWnd->addChildWindow(playMnuBack_btn);
playWnd->addChildWindow(playMnuNext_btn);
return false;
}

bool optionsHandler()
{
return false;
}

bool creditsHandler()
{
return false;
}

bool exitHandler()
{
return false;
}

};

int main ()
{
IrrlichtDevice* device = createDevice(EDT_DIRECT3D9, core::dimension2d<u32>(800, 600), 16, false);
CEGUI::IrrlichtRenderer &myRenderer = CEGUI::IrrlichtRenderer::bootstrapSystem(*device);

IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();

InitialMenu* initMenu = new InitialMenu();

while(device->run() && driver)
{
if(device->isWindowActive())
{
driver->beginScene(true, true, SColor(255, 255, 0, 0));
smgr->drawAll();
CEGUI::System::getSingleton().renderGUI();
driver->endScene();
}
}

device->drop();
return 0;
}



(i)Is this the right way to acheive my task?

I've already posted this topic on Beginners Help. But I've got no reply. Hence I've posted here.

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: Menu System

Postby agamemnus » Thu Jun 24, 2010 14:00

You never said what it actually does do, and where you think the problem is. Most people are too lazy to take your code and try to compile it..

rtr_18
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Aug 25, 2008 10:02

Re: Menu System

Postby rtr_18 » Fri Jun 25, 2010 07:01

Hi!
Sorry! I've done a mistake. I missed the "EventArgs e" parameter in all the four Handlers. The code compiles fine.

The problem is:
(i)When I run, Initial Window opens with four Buttons.But When I click the buttons nothing happens. Atleast when I click the "Play Button" new window has to load with two imgaes, two combo boxes and two buttons namely "Back" and "Next"(Because,I've added these things in my playHandler() function. Why nothing has happend?

(ii) Is this the right way to acheive my task? i.e Switching between menus. If click the "Play Button", options menu has to load which should have two imgaes, two combo boxes and two buttons namely "Back" and "Next". If I click the Back Button ,Initial Menu has to come alive again. If I click the "Next Button" next Menu has to load. Can you
please tell me this approach is correct or can you suggest the better way?

My CEGUILog:
25/06/2010 16:08:55 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
25/06/2010 16:08:55 (Std) + Crazy Eddie's GUI System - Event log +
25/06/2010 16:08:55 (Std) + (http://www.cegui.org.uk/) +
25/06/2010 16:08:55 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

25/06/2010 16:08:55 (Std) CEGUI::Logger singleton created. (01A0CD78)
25/06/2010 16:08:55 (Std)
25/06/2010 16:08:55 (Std) ********************************************************************************
25/06/2010 16:08:55 (Std) * Important: *
25/06/2010 16:08:55 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
25/06/2010 16:08:55 (Std) * of this log file indicated below. Failure to do this will result in no *
25/06/2010 16:08:55 (Std) * support being given; please do not waste our time. *
25/06/2010 16:08:55 (Std) ********************************************************************************
25/06/2010 16:08:55 (Std) ********************************************************************************
25/06/2010 16:08:55 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
25/06/2010 16:08:55 (Std) ********************************************************************************
25/06/2010 16:08:55 (Std) ---- Version 0.7.0 (Build: Jun 18 2010 Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
25/06/2010 16:08:55 (Std) ---- Renderer module is: CEGUI::IrrlichtRenderer - Official Irrlicht based 2nd generation renderer module. ----
25/06/2010 16:08:55 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
25/06/2010 16:08:55 (Std) ---- Image Codec module is: IrrlichtImageCodec - Integrated ImageCodec using the Irrlicht engine. ----
25/06/2010 16:08:55 (Std) ---- Scripting module is: None ----
25/06/2010 16:08:55 (Std) ********************************************************************************
25/06/2010 16:08:55 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
25/06/2010 16:08:55 (Std) ********************************************************************************
25/06/2010 16:08:55 (Std)
25/06/2010 16:08:55 (Std) ---- Begining CEGUI System initialisation ----
25/06/2010 16:08:55 (Std) CEGUI::ImagesetManager singleton created (01A0CC60)
25/06/2010 16:08:55 (Std) CEGUI::FontManager singleton created. (01A0D6A8)
25/06/2010 16:08:55 (Std) CEGUI::WindowFactoryManager singleton created
25/06/2010 16:08:55 (Std) CEGUI::WindowManager singleton created (01A0AAC8)
25/06/2010 16:08:55 (Std) CEGUI::SchemeManager singleton created. (01A0E4A8)
25/06/2010 16:08:55 (Std) CEGUI::MouseCursor singleton created. (01A0E790)
25/06/2010 16:08:55 (Std) CEGUI::GlobalEventSet singleton created. (01A0FAD8)
25/06/2010 16:08:55 (Std) CEGUI::WidgetLookManager singleton created. (01A0FC28)
25/06/2010 16:08:55 (Std) CEGUI::WindowRendererManager singleton created (01A0FEA0)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'DefaultWindow' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'DefaultWindow' windows added. (01A0FFE0)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'DragContainer' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'DragContainer' windows added. (01A10240)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'ScrolledContainer' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'ScrolledContainer' windows added. (01A10400)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'ClippedContainer' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'ClippedContainer' windows added. (01A10608)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Checkbox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (01A107C8)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/PushButton' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (01A10988)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/RadioButton' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (01A10B48)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Combobox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (01A10D68)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ComboDropList' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (01A10F28)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Editbox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (01A110E8)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/FrameWindow' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (01A112A8)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ItemEntry' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (01A11468)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Listbox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (01A11628)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ListHeader' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (01A11CD0)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (01A11958)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Menubar' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (01A11A30)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/PopupMenu' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (01A11BF0)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/MenuItem' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (01A12018)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/MultiColumnList' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (01A121D8)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (01A12398)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ProgressBar' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (01A12608)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ScrollablePane' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (01A127C8)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Scrollbar' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (01A12988)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Slider' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Slider' windows added. (01A12B48)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (01A12D08)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (01A12EC8)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (01A13088)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (01A13248)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (01A13408)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (01A136B0)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (01A13870)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (01A13A30)
25/06/2010 16:08:55 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
25/06/2010 16:08:55 (Std) WindowFactory for 'CEGUI/Tree' windows added. (01A13BF0)
25/06/2010 16:08:55 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
25/06/2010 16:08:55 (Std) CEGUI::System singleton created. (01A0CA50)
25/06/2010 16:08:55 (Std) ---- CEGUI System initialisation completed ----
25/06/2010 16:08:55 (Std)
25/06/2010 16:08:55 (Std) Started creation of Scheme from XML specification:
25/06/2010 16:08:55 (Std) ---- CEGUI GUIScheme name: TaharezLook
25/06/2010 16:08:55 (Std) Started creation of Imageset from XML specification:
25/06/2010 16:08:55 (Std) ---- CEGUI Imageset name: TaharezLook
25/06/2010 16:08:55 (Std) ---- Source texture file: TaharezLook.tga in resource group: (Default)
25/06/2010 16:08:55 (Std) Started creation of Font from XML specification:
25/06/2010 16:08:55 (Std) ---- CEGUI font name: Commonwealth-10
25/06/2010 16:08:55 (Std) ---- Font type: FreeType
25/06/2010 16:08:55 (Std) ---- Source file: Commonv2c.ttf in resource group: (Default)
25/06/2010 16:08:55 (Std) ---- Real point size: 10
25/06/2010 16:08:55 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
25/06/2010 16:08:56 (Std) ===== Look and feel parsing completed =====
25/06/2010 16:08:56 (Std) No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Button' added. (0492BCF0)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Default' added. (048F3698)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Editbox' added. (01AD5DD0)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/FrameWindow' added. (04930A08)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ItemEntry' added. (01A35408)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ListHeader' added. (01A22CF0)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ListHeaderSegment' added. (0491DA78)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Listbox' added. (0490F9A8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Menubar' added. (04908D50)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/MenuItem' added. (048C90A0)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/MultiColumnList' added. (048C9178)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/MultiLineEditbox' added. (04930B98)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/PopupMenu' added. (0492ECF0)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ProgressBar' added. (0492EEB0)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ScrollablePane' added. (01A14968)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Scrollbar' added. (01A14B28)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Slider' added. (01A14CE8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Static' added. (01A14EA8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/StaticImage' added. (01A15068)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/StaticText' added. (049342F8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/SystemButton' added. (049344B8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/TabButton' added. (04934678)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/TabControl' added. (04934838)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Titlebar' added. (049349F8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ToggleButton' added. (04934BB8)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Tooltip' added. (04934D78)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/ItemListbox' added. (01A34398)
25/06/2010 16:08:56 (Std) Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
25/06/2010 16:08:56 (Std) WindowRendererFactory 'Falagard/Tree' added. (01A34558)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'TaharezLook/ItemListbox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'. (0039B25C)
25/06/2010 16:08:56 (Std) Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'. (0039B25C)
25/06/2010 16:08:56 (Std) Attempting to create FreeType font 'DejaVuSans-10.font' using font file 'DejaVuSans.ttf'.
25/06/2010 16:08:56 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Button' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/RadioButton' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Checkbox' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Editbox' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Titlebar' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/FrameWindow' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/GroupBox' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ProgressBar' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/AltProgressBar' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/VUMeter' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/SliderThumb' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Slider' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/HorizontalScrollbarThumb' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/HorizontalScrollbar' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/VerticalScrollbarThumb' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/VerticalScrollbar' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Listbox' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ComboDropList' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ComboEditbox' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Combobox' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Spinner' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/StaticShared' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/StaticImage' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/StaticText' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ListHeaderSegment' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ListHeader' already exists. Replacing previous definition.
25/06/2010 16:08:56 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/MultiColumnList' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/MultiLineEditbox' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Tooltip' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ScrollablePane' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabButton' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabContentPane' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabButtonPane' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabControl' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/MenuItem' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/PopupMenu' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Menubar' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/LargeVerticalScrollbarThumb' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/LargeVerticalScrollbar' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ImageButton' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ItemListbox' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ListboxItem' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Tree' already exists. Replacing previous definition.
25/06/2010 16:08:57 (Std) ===== Look and feel parsing completed =====
25/06/2010 16:08:57 (Std) Attempting to create Imageset 'DejaVuSans-10.font_auto_glyph_images_ ' with texture only.
25/06/2010 16:08:57 (Error) CEGUI::UnknownObjectException in file e:\cegui-0.7.0\cegui-0.7.0\cegui\include\ceguinamedxmlresourcemanager.h(264) : NamedXMLResourceManager::get: No object of type 'Imageset' named 'ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ2ã<þÌÖ9' is present in the collection.
Last edited by rtr_18 on Fri Jun 25, 2010 10:41, edited 1 time in total.

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: Menu System

Postby agamemnus » Fri Jun 25, 2010 10:39

You need to inject click (mouse) and key events.

As for whether this is the right way, or the wrong way... it is just fine, except that you didn't inject mouse and key events.

rtr_18
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Aug 25, 2008 10:02

Re: Menu System

Postby rtr_18 » Fri Jun 25, 2010 10:50

Hi!
I've tried injecting Events also. Here is the code:

Code: Select all


#include "irrlicht.h"
#include "CEGUI.h"
#include "CEGUIIrrlichtRenderer.h"
#include "CEGUIWindowManager.h"
#include "CEGUIDefaultResourceProvider.h"
#include "CEGUIButtonBase.h"

using namespace std;
using namespace CEGUI;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
class InitialMenu
{
 private:
        WindowManager* wmgr;
       Window* myRoot, *playWnd;
       FrameWindow* fWnd;
       DefaultResourceProvider* rp;
       CEGUI::PushButton* play_btn, *options_btn, *credits_btn, *exit_btn;
       CEGUI::Image* playercty_img, *oppcty_img;
       CEGUI::Combobox* playercty_cbo, *oppcty_cbo;
       CEGUI::PushButton* playMnuBack_btn, *playMnuNext_btn;
 public:
      InitialMenu()
      {
        rp = static_cast<DefaultResourceProvider*>(System::getSingleton().getResourceProvider());
      rp->setResourceGroupDirectory ("schemes", "datafiles/schemes/");
        rp->setResourceGroupDirectory ("imagesets", "datafiles/imagesets/");
        rp->setResourceGroupDirectory ("fonts", "datafiles/fonts/");
        rp->setResourceGroupDirectory ("layouts", "datafiles/layouts/");
        rp->setResourceGroupDirectory ("looknfeel", "datafiles/looknfeel/");
        rp->setResourceGroupDirectory ("lua_scripts", "../datafiles/lua_scripts/");
      CEGUI::Imageset::setDefaultResourceGroup("imagesets");
        CEGUI::Font::setDefaultResourceGroup("fonts");
        CEGUI::Scheme::setDefaultResourceGroup("schemes");
        CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeel");
        CEGUI::WindowManager::setDefaultResourceGroup("layouts");
        CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme","schemes" );
        FontManager::getSingleton().createFreeTypeFont("DejaVuSans-10.font",10,false, "DejaVuSans.ttf");
        WidgetLookManager::getSingleton().parseLookNFeelSpecification("TaharezLook.looknfeel", "looknfeel");
        wmgr = WindowManager::getSingletonPtr();
      myRoot = wmgr->createWindow("DefaultWindow", "root");
      myRoot->setEnabled(true);
      myRoot->setMutedState(false);
      System::getSingleton().setGUISheet(myRoot);
      fWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "");
        fWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
        fWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
        fWnd->setText("Hello World!");
        myRoot->addChildWindow(fWnd);
      fWnd->setSizingEnabled(true);
        play_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "play_btn");
        options_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "options_btn");
        credits_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "credits_btn");
        exit_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "exit_btn");
        fWnd->addChildWindow(play_btn);
        fWnd->addChildWindow(options_btn);
        fWnd->addChildWindow(credits_btn);
        fWnd->addChildWindow(exit_btn);
        play_btn->setPosition(UVector2(UDim(0.22f, 11.5f), UDim(0.05f, 11.5f)));
        play_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
      play_btn->setText("Play");
      play_btn->setProperty("NormalImage", "E:/CricCEGUI/bg.png");
      CEGUI::uint play_id = play_btn->getID();
      printf("play_id:%u\n",play_id);
        options_btn->setPosition(UVector2(UDim(0.25f, 0.25f), UDim(0.25f, 0.25f)));
        options_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
      options_btn->setText("Options");
      CEGUI::uint options_id = options_btn->getID();
      printf("options_id %u\n",options_id);
        credits_btn->setPosition(UVector2(UDim(0.18f, 28.6f), UDim(0.3f, 28.6f)));
      credits_btn->setText("Credits");
        credits_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
        exit_btn->setPosition(UVector2(UDim(0.07f, 71.2f), UDim(0.3f, 71.2f)));
        exit_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
      exit_btn->setText("Exit");
        System::getSingleton().setDefaultFont("DejaVuSans-10.font");
        //System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");
        System::getSingleton().setDefaultTooltip("TaharezLook/Tooltip");
      CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
      
      //CEGUI::System::injectMouseButtonDown(CEGUI::LeftButton);
      //CEGUI::System::setMouseClickEventGenerationEnabled(true);
      play_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::playHandler, this));
       options_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::optionsHandler, this));
       credits_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::creditsHandler, this));
       exit_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::exitHandler, this));
      }

      bool playHandler(const EventArgs& e)
      {
       wmgr = WindowManager::getSingletonPtr();
      playWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "");
        playWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
        playWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
      System::getSingleton().setGUISheet(playWnd);
      playercty_img = (Image*) wmgr->createWindow("TaharezLook/StaticImage", "playercty_img");
      oppcty_img = (Image*) wmgr->createWindow("TaharezLook/StaticImage", "oppcty_img");
      playercty_cbo = (Combobox*) wmgr->createWindow("TaharezLook/Combobox", "playercty_cbo");
      oppcty_cbo = (Combobox*) wmgr->createWindow("TaharezLook/Combobox", "oppcty_cbo");
      playMnuBack_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "playMnuBack_btn");
      playMnuNext_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "playMnuNext_btn");
      playWnd->addChildWindow(playercty_img->getName());
      playWnd->addChildWindow(oppcty_img->getName());
      playWnd->addChildWindow(playercty_cbo);
      playWnd->addChildWindow(oppcty_cbo);
      playWnd->addChildWindow(playMnuBack_btn);
      playWnd->addChildWindow(playMnuNext_btn);
      return false;
      }

      bool optionsHandler(const EventArgs& e)
      {
       return false;
      }
      
      bool creditsHandler(const EventArgs& e)
      {
       return false;
      }

      bool exitHandler(const EventArgs& e)
      {
      WindowManager::getSingleton().destroyWindow(myRoot);
      //wmgr->destroyAllWindows();
       return false;
      }

};
int main ()
{
 IrrlichtDevice* device = createDevice(EDT_DIRECT3D9, core::dimension2d<u32>(800, 600), 16, false);
 CEGUI::IrrlichtRenderer &myRenderer = CEGUI::IrrlichtRenderer::bootstrapSystem(*device);

 IVideoDriver* driver = device->getVideoDriver();
 ISceneManager* smgr = device->getSceneManager();
 
 /*DefaultResourceProvider* rp = static_cast<DefaultResourceProvider*>(System::getSingleton().getResourceProvider());
        // Set defaults for resource groups
        // This will allow us to use resource groups instead of writing full path
        // to resources every time we need it
  rp->setResourceGroupDirectory ("schemes", "datafiles/schemes/");
  rp->setResourceGroupDirectory ("imagesets", "datafiles/imagesets/");
  rp->setResourceGroupDirectory ("fonts", "datafiles/fonts/");
  rp->setResourceGroupDirectory ("layouts", "datafiles/layouts/");
  rp->setResourceGroupDirectory ("looknfeel", "datafiles/looknfeel/");
  rp->setResourceGroupDirectory ("lua_scripts", "../datafiles/lua_scripts/");


  CEGUI::Imageset::setDefaultResourceGroup("imagesets");
  CEGUI::Font::setDefaultResourceGroup("fonts");
  CEGUI::Scheme::setDefaultResourceGroup("schemes");
  CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeel");
  CEGUI::WindowManager::setDefaultResourceGroup("layouts");

 // load in the scheme file, which auto-loads the TaharezLook imageset
  CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme","schemes" );

  FontManager::getSingleton().createFreeTypeFont("DejaVuSans-10.font",10,false, "DejaVuSans.ttf");

  WidgetLookManager::getSingleton().parseLookNFeelSpecification("TaharezLook.looknfeel", "looknfeel");

  //SchemeManager::getSingleton ().loadScheme ("TaharezLookWidgets.scheme", "schemes");
   WindowManager& wmgr = WindowManager::getSingleton();
   Window* myRoot = wmgr.createWindow("DefaultWindow", "root");
   System::getSingleton().setGUISheet(myRoot);
   FrameWindow* fWnd = (FrameWindow*)wmgr.createWindow("TaharezLook/FrameWindow", "");
   fWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
   fWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
   fWnd->setText("Hello World!");
   myRoot->addChildWindow(fWnd);
   CEGUI::PushButton* play_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "play_btn");
   CEGUI::PushButton* options_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "options_btn");
   CEGUI::PushButton* credits_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "credits_btn");
   CEGUI::PushButton* exit_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "exit_btn");
 
  fWnd->addChildWindow(play_btn);
  fWnd->addChildWindow(options_btn);
  fWnd->addChildWindow(credits_btn);
  fWnd->addChildWindow(exit_btn);

  play_btn->setPosition(UVector2(UDim(0.25f, 0.25f), UDim(0.25f, 0.25f)));
  play_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
  options_btn->setPosition(UVector2(UDim(0.05f, 11.5f), UDim(0.05f, 11.5f)));
  options_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
 // exit_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&exitHandler));
  credits_btn->setPosition(UVector2(UDim(0.3f, 0.3f), UDim(0.3f, 0.3f)));
  credits_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
  exit_btn->setPosition(UVector2(UDim(0.39f, 0.5f), UDim(0.39f, 0.5f)));
  exit_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
  System::getSingleton().setDefaultFont("DejaVuSans-10.font");
  System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");
  System::getSingleton().setDefaultTooltip("TaharezLook/Tooltip");
 
 
  /*MyEventReceiver receiver;
  device->setEventReceiver(&receiver);*/
  InitialMenu* initMenu = new InitialMenu();
 
 while(device->run() && driver)
 {
  if(device->isWindowActive())
  {
   irr::core::stringw caption = L"FPS: ";
   irr::s32 fps = device->getVideoDriver()->getFPS();
   caption += fps;
  //caption = caption.c_str();
   device->setWindowCaption(caption.c_str());

   driver->beginScene(true, true, SColor(255, 255, 0, 0));
   smgr->drawAll();
   CEGUI::System::getSingleton().renderGUI();
   driver->endScene();
  }
 }
 
 device->drop();
 return 0;
}


Please tell me if any corrections need regarding where I've to add this "injectMouseEvent". One more thing, from the very beginning
I can't close my CEGUI Window(FrameWindow). I am closing only my Irrlicht Window.

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: Menu System

Postby agamemnus » Fri Jun 25, 2010 20:20

Mouse down is not equivalent to a mouse click--mouse click = mouse down then mouse up.

Just use this inside an Irrlicht OnEvent function:

(((CEGUI::IrrlichtRenderer*)CEGUIRendererPtr) -> injectEvent (event))

rtr_18
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Aug 25, 2008 10:02

Re: Menu System

Postby rtr_18 » Sat Jun 26, 2010 08:33

Hi!
I tried this. The code compiles fine. But Application Window opens and closes in a sudden. Then a window opens showing the error "Data Execution Prevention".
The Error details has:

Problem signature:
Problem Event Name: BEX
Application Name: CricCEGUI.exe
Application Version: 0.0.0.0
Application Timestamp: 4c259f04
Fault Module Name: StackHash_4930
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: 01079340
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.0.6002.2.2.0.256.1
Locale ID: 1033
Additional Information 1: 4930
Additional Information 2: b5c2ee444cce2fcc0c63bdde408d8084
Additional Information 3: b9dd
Additional Information 4: c9f8be406ff0c0f9c077c4f309046cec

I've changed my code at some places. I've created the irrlichtDevice and CEGUI::IrrlichtRenderer at the start of my program(before my class declaration) to make these two things visible to OnEvent function. Now my coed is:

Code: Select all

#include "irrlicht.h"
#include "CEGUI.h"
#include "CEGUIIrrlichtRenderer.h"
#include "CEGUIWindowManager.h"
#include "CEGUIDefaultResourceProvider.h"
#include "CEGUIButtonBase.h"
#include "core.h"
#include "IGUIEnvironment.h"

#define STATUS_ACCESS_VIOLATION ((NTSTATUS)0xC0000005L)

using namespace std;
using namespace CEGUI;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

IrrlichtDevice* device = createDevice(EDT_DIRECT3D9, core::dimension2d<u32>(800, 600), 16, false);
CEGUI::IrrlichtRenderer &myRenderer = CEGUI::IrrlichtRenderer::bootstrapSystem(*device);
video::IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();

class InitialMenu : public IEventReceiver
{
 private:
        WindowManager* wmgr;
       Window* myRoot, *playWnd;
       FrameWindow* fWnd;
       DefaultResourceProvider* rp;
       CEGUI::PushButton* play_btn, *options_btn, *credits_btn, *exit_btn;
       CEGUI::Image* playercty_img, *oppcty_img;
       CEGUI::Combobox* playercty_cbo, *oppcty_cbo;
       CEGUI::PushButton* playMnuBack_btn, *playMnuNext_btn;
 public:
      InitialMenu()
      { 
       rp = static_cast<DefaultResourceProvider*>(System::getSingleton().getResourceProvider());
      rp->setResourceGroupDirectory ("schemes", "datafiles/schemes/");
        rp->setResourceGroupDirectory ("imagesets", "datafiles/imagesets/");
        rp->setResourceGroupDirectory ("fonts", "datafiles/fonts/");
        rp->setResourceGroupDirectory ("layouts", "datafiles/layouts/");
        rp->setResourceGroupDirectory ("looknfeel", "datafiles/looknfeel/");
        rp->setResourceGroupDirectory ("lua_scripts", "../datafiles/lua_scripts/");
      CEGUI::Imageset::setDefaultResourceGroup("imagesets");
        CEGUI::Font::setDefaultResourceGroup("fonts");
        CEGUI::Scheme::setDefaultResourceGroup("schemes");
        CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeel");
        CEGUI::WindowManager::setDefaultResourceGroup("layouts");
        CEGUI::SchemeManager::getSingleton().create("TaharezLook.scheme","schemes");
        FontManager::getSingleton().createFreeTypeFont("DejaVuSans-10.font",10,false, "DejaVuSans.ttf");
        WidgetLookManager::getSingleton().parseLookNFeelSpecification("TaharezLook.looknfeel", "looknfeel");
        wmgr = WindowManager::getSingletonPtr();
      myRoot = wmgr->createWindow("DefaultWindow", "root");
      System::getSingleton().setGUISheet(myRoot);
      fWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "");
        fWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
        fWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
        fWnd->setText("Hello World!");
        myRoot->addChildWindow(fWnd);
      fWnd->setSizingEnabled(true);
      CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
      CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::LeftButton);
        play_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "play_btn");
        options_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "options_btn");
        credits_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "credits_btn");
        exit_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "exit_btn");
        fWnd->addChildWindow(play_btn);
        fWnd->addChildWindow(options_btn);
        fWnd->addChildWindow(credits_btn);
        fWnd->addChildWindow(exit_btn);
        play_btn->setPosition(UVector2(UDim(0.22f, 11.5f), UDim(0.05f, 11.5f)));
        play_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
      play_btn->setText("Play");
      play_btn->setProperty("NormalImage", "E:/CricCEGUI/bg.png");
        options_btn->setPosition(UVector2(UDim(0.25f, 0.25f), UDim(0.25f, 0.25f)));
        options_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
      options_btn->setText("Options");
        credits_btn->setPosition(UVector2(UDim(0.18f, 28.6f), UDim(0.3f, 28.6f)));
      credits_btn->setText("Credits");
        credits_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
        exit_btn->setPosition(UVector2(UDim(0.07f, 71.2f), UDim(0.3f, 71.2f)));
        exit_btn->setSize(UVector2(UDim(0.2f, 0.15f), UDim(0.15f, 0.15f)));
      exit_btn->setText("Exit");
        System::getSingleton().setDefaultFont("DejaVuSans-10.font");
        System::getSingleton().setDefaultTooltip("TaharezLook/Tooltip");         
      CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
      CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::LeftButton);
      //CEGUI::System::setMouseClickEventGenerationEnabled(true);
      play_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::playHandler, this));
      //CEGUI::Event::Subscriber(&InitialMenu::playHandler, this);
      play_btn->subscribeEvent(PushButton::EventMouseEnters,  Event::Subscriber(&InitialMenu::onMouseEnters, this));
       options_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::optionsHandler, this));
       credits_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::creditsHandler, this));
       exit_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&InitialMenu::exitHandler, this));
      }

      bool playHandler(const EventArgs& e)
      {
      //CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
      //CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::LeftButton);
      wmgr = WindowManager::getSingletonPtr();
      
      playWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "playWnd");
        playWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
        playWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));

      System::getSingleton().setGUISheet(playWnd);

      playercty_img = (Image*) wmgr->createWindow("TaharezLook/StaticImage", "playercty_img");
      oppcty_img = (Image*) wmgr->createWindow("TaharezLook/StaticImage", "oppcty_img");
      playercty_cbo = (Combobox*) wmgr->createWindow("TaharezLook/Combobox", "playercty_cbo");
      oppcty_cbo = (Combobox*) wmgr->createWindow("TaharezLook/Combobox", "oppcty_cbo");
      playMnuBack_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "playMnuBack_btn");
      playMnuNext_btn = (PushButton*) wmgr->createWindow("TaharezLook/Button", "playMnuNext_btn");
      playWnd->addChildWindow(playercty_img->getName());
      playWnd->addChildWindow(oppcty_img->getName());
      playWnd->addChildWindow(playercty_cbo);
      playWnd->addChildWindow(oppcty_cbo);
      playWnd->addChildWindow(playMnuBack_btn);
      playWnd->addChildWindow(playMnuNext_btn);
      return true;
      }
       bool onMouseEnters(const EventArgs& e)
      {
       CEGUI::PushButton * pushButton = static_cast<CEGUI::PushButton*>(CEGUI::WindowManager::getSingletonPtr()->getWindow("play_btn"));
      pushButton->setText("Now Click!");
      return true;
      }
      bool optionsHandler(const EventArgs& e)
      {
       return true;
      }
      
      bool creditsHandler(const EventArgs& e)
      {
       return true;
      }

      bool exitHandler(const EventArgs& e)
      {
      WindowManager::getSingleton().destroyWindow(myRoot);
      //wmgr->destroyAllWindows();
       return true;
      }
       virtual bool OnEvent(const SEvent& event)
      {
       bool retval = ::myRenderer.injectEvent(event);
      if(retval)
      {
       return true;
      }
        return false;
      }

void Run()
{
 //device = createDevice(EDT_DIRECT3D9, core::dimension2d<u32>(800, 600), 16, false);//int last_fps = -1;
 //CEGUI::IrrlichtRenderer &myRenderer = CEGUI::IrrlichtRenderer::bootstrapSystem(*device);
 //IGUIEnvironment* env = device->getGUIEnvironment();
// ::driver = device->getVideoDriver();
 //::smgr = device->getSceneManager();

 while (device->run() && driver)
 {
  if(device->isWindowActive())
  {
   //u32 curr_time = device->getTimer()->getRealTime();
   //System::getSingleton ().injectTimePulse(static_cast<float>(curr_time - last_time)/1000.0f);
   //last_time = curr_time;
   driver->beginScene(true, true, SColor(150, 50, 50, 50));
   ::smgr->drawAll();
   //env->drawAll();
   System::getSingleton().renderGUI();
   ::driver->endScene();
  }
  ::device->drop();
 }
}
~InitialMenu()
{
 delete[] InitialMenu::play_btn;
 delete[] InitialMenu::credits_btn;
 delete[] InitialMenu::exit_btn;
 delete[] InitialMenu::fWnd;
 delete[] InitialMenu::myRoot;
 delete[] InitialMenu::oppcty_cbo;
 delete[] InitialMenu::oppcty_img;
 delete[] InitialMenu::options_btn;
 delete[] InitialMenu::playercty_cbo;
 delete[] InitialMenu::playercty_img;
 delete[] InitialMenu::playMnuBack_btn;
 delete[] InitialMenu::playMnuNext_btn;
 delete[] InitialMenu::playWnd;
 delete[] InitialMenu::rp;
 delete[] InitialMenu::wmgr;
 delete device;
 delete driver;
}
};
int main ()
{
 //IrrlichtDevice* device = createDevice(EDT_DIRECT3D9, core::dimension2d<u32>(800, 600), 16, false);
 //CEGUI::IrrlichtRenderer &myRenderer = CEGUI::IrrlichtRenderer::bootstrapSystem(*device);
 
 //IVideoDriver* driver = device->getVideoDriver();
 //ISceneManager* smgr = device->getSceneManager();
 
 /*DefaultResourceProvider* rp = static_cast<DefaultResourceProvider*>(System::getSingleton().getResourceProvider());
        // Set defaults for resource groups
        // This will allow us to use resource groups instead of writing full path
        // to resources every time we need it
  rp->setResourceGroupDirectory ("schemes", "datafiles/schemes/");
  rp->setResourceGroupDirectory ("imagesets", "datafiles/imagesets/");
  rp->setResourceGroupDirectory ("fonts", "datafiles/fonts/");
  rp->setResourceGroupDirectory ("layouts", "datafiles/layouts/");
  rp->setResourceGroupDirectory ("looknfeel", "datafiles/looknfeel/");
  rp->setResourceGroupDirectory ("lua_scripts", "../datafiles/lua_scripts/");


  CEGUI::Imageset::setDefaultResourceGroup("imagesets");
  CEGUI::Font::setDefaultResourceGroup("fonts");
  CEGUI::Scheme::setDefaultResourceGroup("schemes");
  CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeel");
  CEGUI::WindowManager::setDefaultResourceGroup("layouts");

 // load in the scheme file, which auto-loads the TaharezLook imageset
  CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme","schemes" );

  FontManager::getSingleton().createFreeTypeFont("DejaVuSans-10.font",10,false, "DejaVuSans.ttf");

  WidgetLookManager::getSingleton().parseLookNFeelSpecification("TaharezLook.looknfeel", "looknfeel");

  //SchemeManager::getSingleton ().loadScheme ("TaharezLookWidgets.scheme", "schemes");
   WindowManager& wmgr = WindowManager::getSingleton();
   Window* myRoot = wmgr.createWindow("DefaultWindow", "root");
   System::getSingleton().setGUISheet(myRoot);
   FrameWindow* fWnd = (FrameWindow*)wmgr.createWindow("TaharezLook/FrameWindow", "");
   fWnd->setPosition(UVector2(UDim(0.25f, 0.0f), UDim(0.25f, 0.0f)));
   fWnd->setSize(UVector2(UDim(0.5f, 0.5f), UDim(0.5f, 0.5f)));
   fWnd->setText("Hello World!");
   myRoot->addChildWindow(fWnd);
   CEGUI::PushButton* play_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "play_btn");
   CEGUI::PushButton* options_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "options_btn");
   CEGUI::PushButton* credits_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "credits_btn");
   CEGUI::PushButton* exit_btn = (PushButton*) wmgr.createWindow("TaharezLook/Button", "exit_btn");
 
  fWnd->addChildWindow(play_btn);
  fWnd->addChildWindow(options_btn);
  fWnd->addChildWindow(credits_btn);
  fWnd->addChildWindow(exit_btn);

  play_btn->setPosition(UVector2(UDim(0.25f, 0.25f), UDim(0.25f, 0.25f)));
  play_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
  options_btn->setPosition(UVector2(UDim(0.05f, 11.5f), UDim(0.05f, 11.5f)));
  options_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
 // exit_btn->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&exitHandler));
  credits_btn->setPosition(UVector2(UDim(0.3f, 0.3f), UDim(0.3f, 0.3f)));
  credits_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
  exit_btn->setPosition(UVector2(UDim(0.39f, 0.5f), UDim(0.39f, 0.5f)));
  exit_btn->setSize(UVector2(UDim(0.15f, 0.15f), UDim(0.15f, 0.15f)));
  System::getSingleton().setDefaultFont("DejaVuSans-10.font");
  System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");
  System::getSingleton().setDefaultTooltip("TaharezLook/Tooltip");
 
 
  /*MyEventReceiver receiver;
  device->setEventReceiver(&receiver);*/
  //InitialMenu* initMenu = new InitialMenu();
 
 /*while(device->run() && driver)
 {
  if(device->isWindowActive())
  {
   irr::core::stringw caption = L"FPS: ";
   irr::s32 fps = device->getVideoDriver()->getFPS();
   caption += fps;
  //caption = caption.c_str();
   device->setWindowCaption(caption.c_str());

   driver->beginScene(true, true, SColor(255, 255, 0, 0));
   smgr->drawAll();
   CEGUI::System::getSingleton().renderGUI();
   driver->endScene();
  }
 }
 
 device->drop();*/
   InitialMenu* initMenu = new InitialMenu();
   initMenu->Run();
   initMenu->~InitialMenu();
 return 0;
}


My CEGUILog:

26/06/2010 13:55:20 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
26/06/2010 13:55:20 (Std) + Crazy Eddie's GUI System - Event log +
26/06/2010 13:55:20 (Std) + (http://www.cegui.org.uk/) +
26/06/2010 13:55:20 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

26/06/2010 13:55:20 (Std) CEGUI::Logger singleton created. (00D9CD78)
26/06/2010 13:55:20 (Std)
26/06/2010 13:55:20 (Std) ********************************************************************************
26/06/2010 13:55:20 (Std) * Important: *
26/06/2010 13:55:20 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
26/06/2010 13:55:20 (Std) * of this log file indicated below. Failure to do this will result in no *
26/06/2010 13:55:20 (Std) * support being given; please do not waste our time. *
26/06/2010 13:55:20 (Std) ********************************************************************************
26/06/2010 13:55:20 (Std) ********************************************************************************
26/06/2010 13:55:20 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
26/06/2010 13:55:20 (Std) ********************************************************************************
26/06/2010 13:55:20 (Std) ---- Version 0.7.0 (Build: Jun 18 2010 Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
26/06/2010 13:55:20 (Std) ---- Renderer module is: CEGUI::IrrlichtRenderer - Official Irrlicht based 2nd generation renderer module. ----
26/06/2010 13:55:20 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
26/06/2010 13:55:20 (Std) ---- Image Codec module is: IrrlichtImageCodec - Integrated ImageCodec using the Irrlicht engine. ----
26/06/2010 13:55:20 (Std) ---- Scripting module is: None ----
26/06/2010 13:55:20 (Std) ********************************************************************************
26/06/2010 13:55:20 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
26/06/2010 13:55:20 (Std) ********************************************************************************
26/06/2010 13:55:20 (Std)
26/06/2010 13:55:20 (Std) ---- Begining CEGUI System initialisation ----
26/06/2010 13:55:20 (Std) CEGUI::ImagesetManager singleton created (00D9CC60)
26/06/2010 13:55:20 (Std) CEGUI::FontManager singleton created. (00D9D6A8)
26/06/2010 13:55:20 (Std) CEGUI::WindowFactoryManager singleton created
26/06/2010 13:55:20 (Std) CEGUI::WindowManager singleton created (00D9AAC8)
26/06/2010 13:55:20 (Std) CEGUI::SchemeManager singleton created. (00D9E4A8)
26/06/2010 13:55:20 (Std) CEGUI::MouseCursor singleton created. (00D9E790)
26/06/2010 13:55:20 (Std) CEGUI::GlobalEventSet singleton created. (00D9FAD8)
26/06/2010 13:55:20 (Std) CEGUI::WidgetLookManager singleton created. (00D9FC28)
26/06/2010 13:55:20 (Std) CEGUI::WindowRendererManager singleton created (00D9FEA0)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'DefaultWindow' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'DefaultWindow' windows added. (00D9FFE0)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'DragContainer' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'DragContainer' windows added. (00DA0240)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'ScrolledContainer' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'ScrolledContainer' windows added. (00DA0400)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'ClippedContainer' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'ClippedContainer' windows added. (00DA0608)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Checkbox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (00DA07C8)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/PushButton' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (00DA0988)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/RadioButton' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (00DA0B48)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Combobox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (00DA0D68)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ComboDropList' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (00DA0F28)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Editbox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (00DA10E8)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/FrameWindow' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (00DA12A8)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ItemEntry' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (00DA1468)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Listbox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (00DA1628)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ListHeader' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (00DA1CD0)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00DA1958)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Menubar' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (00DA1A30)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/PopupMenu' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (00DA1BF0)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/MenuItem' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (00DA2018)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/MultiColumnList' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (00DA21D8)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (00DA2398)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ProgressBar' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (00DA2608)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ScrollablePane' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (00DA27C8)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Scrollbar' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (00DA2988)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Slider' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Slider' windows added. (00DA2B48)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (00DA2D08)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (00DA2EC8)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (00DA3088)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (00DA3248)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (00DA3408)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (00DA36B0)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (00DA3870)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (00DA3A30)
26/06/2010 13:55:20 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
26/06/2010 13:55:20 (Std) WindowFactory for 'CEGUI/Tree' windows added. (00DA3BF0)
26/06/2010 13:55:20 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
26/06/2010 13:55:20 (Std) CEGUI::System singleton created. (00D9CA50)
26/06/2010 13:55:20 (Std) ---- CEGUI System initialisation completed ----
26/06/2010 13:55:20 (Std)
26/06/2010 13:55:20 (Std) Started creation of Scheme from XML specification:
26/06/2010 13:55:20 (Std) ---- CEGUI GUIScheme name: TaharezLook
26/06/2010 13:55:20 (Std) Started creation of Imageset from XML specification:
26/06/2010 13:55:20 (Std) ---- CEGUI Imageset name: TaharezLook
26/06/2010 13:55:20 (Std) ---- Source texture file: TaharezLook.tga in resource group: (Default)
26/06/2010 13:55:21 (Std) Started creation of Font from XML specification:
26/06/2010 13:55:21 (Std) ---- CEGUI font name: Commonwealth-10
26/06/2010 13:55:21 (Std) ---- Font type: FreeType
26/06/2010 13:55:21 (Std) ---- Source file: Commonv2c.ttf in resource group: (Default)
26/06/2010 13:55:21 (Std) ---- Real point size: 10
26/06/2010 13:55:21 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
26/06/2010 13:55:21 (Std) ===== Look and feel parsing completed =====
26/06/2010 13:55:21 (Std) No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Button' added. (0495BCF0)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Default' added. (04923698)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Editbox' added. (00E65DD0)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/FrameWindow' added. (04960A08)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ItemEntry' added. (00DC5408)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ListHeader' added. (00DB2CF0)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ListHeaderSegment' added. (0494DA78)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Listbox' added. (0493F9A8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Menubar' added. (04938D50)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/MenuItem' added. (048F90A0)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/MultiColumnList' added. (048F9178)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/MultiLineEditbox' added. (04960B98)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/PopupMenu' added. (0495ECF0)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ProgressBar' added. (0495EEB0)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ScrollablePane' added. (00DA4968)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Scrollbar' added. (00DA4B28)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Slider' added. (00DA4CE8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Static' added. (00DA4EA8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/StaticImage' added. (00DA5068)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/StaticText' added. (049642F8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/SystemButton' added. (049644B8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/TabButton' added. (04964678)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/TabControl' added. (04964838)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Titlebar' added. (049649F8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ToggleButton' added. (04964BB8)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Tooltip' added. (04964D78)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/ItemListbox' added. (00DC4398)
26/06/2010 13:55:21 (Std) Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
26/06/2010 13:55:21 (Std) WindowRendererFactory 'Falagard/Tree' added. (00DC4558)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'. (0018B2DC)
26/06/2010 13:55:21 (Std) Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'. (0018B2DC)
26/06/2010 13:55:22 (Std) Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'. (0018B2DC)
26/06/2010 13:55:22 (Std) Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'. (0018B2DC)
26/06/2010 13:55:22 (Std) Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'TaharezLook/ItemListbox'. (0018B2DC)
26/06/2010 13:55:22 (Std) Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'. (0018B2DC)
26/06/2010 13:55:22 (Std) Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'. (0018B2DC)
26/06/2010 13:55:22 (Std) Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'. (0018B2DC)
26/06/2010 13:55:22 (Std) Attempting to create FreeType font 'DejaVuSans-10.font' using font file 'DejaVuSans.ttf'.
26/06/2010 13:55:22 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Button' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/RadioButton' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Checkbox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Editbox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Titlebar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/FrameWindow' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/GroupBox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ProgressBar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/AltProgressBar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/VUMeter' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/SliderThumb' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Slider' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/HorizontalScrollbarThumb' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/HorizontalScrollbar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/VerticalScrollbarThumb' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/VerticalScrollbar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Listbox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ComboDropList' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ComboEditbox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Combobox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Spinner' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/StaticShared' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/StaticImage' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/StaticText' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ListHeaderSegment' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ListHeader' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/MultiColumnList' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/MultiLineEditbox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Tooltip' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ScrollablePane' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabButton' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabContentPane' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabButtonPane' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/TabControl' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/MenuItem' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/PopupMenu' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Menubar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/LargeVerticalScrollbarThumb' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/LargeVerticalScrollbar' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ImageButton' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ItemListbox' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/ListboxItem' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'TaharezLook/Tree' already exists. Replacing previous definition.
26/06/2010 13:55:22 (Std) ===== Look and feel parsing completed =====

What to do get around this error?

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: Menu System

Postby agamemnus » Sat Jun 26, 2010 16:41

I don't know.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Menu System

Postby Jamarr » Tue Jun 29, 2010 23:08

Hi rtr_18, I am not fluent with Irrlicht or v0.7 of CEGUI but I can see a few things that appear to be out of place.

1. I would not recommend using global variables, much less initializing those variables in the global scope. The order of global execution is not defined by the c++ standard (and therefor produces undefined behavior); you will almost certainly run into trouble with this, and may be the cause of your error. If you must use globals, initialize them within the context of main().

2. It seems you are manually (meaning these are not user-generated events) injecting inputs from your initialization code; you should not need to do this. Input events generated by the user should be injected by the Irrlicht::OnEvent function; your current code appears to be doing this already.

3. This should not prevent CEGUI from functioning, but you should probably call setMousePassThroughEnabled(true) on your root window. This will allow the inject* functions to properly return false when CEGUI does not consume an event. Once you get CEGUI running, this issue would certainly crop up.

notes: I assume this is test code to get CEGUI up and running, but making a habit of good programming practices will keep you from pulling your hair out later. I would recommend removing the using namespace declarations in your header file. This is going to pollute the global namespace and will certainly cause you trouble down the road; you will wind up with compiler errors, calling the wrong functions, or who knows what. I would also recommend placing source-code in source-files, and not in headers. Your code will be far less coupled, making it both cleaner and easier to maintain.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests