Problem With Second Load Of Layout

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

oscar.rpr
Just popping in
Just popping in
Posts: 8
Joined: Thu Oct 27, 2011 19:48

Problem With Second Load Of Layout

Postby oscar.rpr » Fri Nov 25, 2011 05:55

Hello everyone

I been experiencing some problems with CEGUI and one of them it's that the game starts in the Main Menu, but in one click the game changes to another state where a different layout needs to be loaded but I can't find what it's the problem.

I loaded the first layout like this:

Code: Select all

CEGUI::WindowManager& SMainMenu::initializeCEGUI( SDL_Surface& surface )
{
  CEGUI::DefaultResourceProvider* resourceProvider = (CEGUI::DefaultResourceProvider*)
         (CEGUI::System::getSingleton().getResourceProvider());

  resourceProvider->setResourceGroupDirectory( "schemes", "datafiles/schemes/" );
  resourceProvider->setResourceGroupDirectory( "imagesets", "datafiles/imagesets/" );
  resourceProvider->setResourceGroupDirectory( "fonts", "datafiles/fonts/" );
  resourceProvider->setResourceGroupDirectory( "layouts", "datafiles/layouts/" );
  resourceProvider->setResourceGroupDirectory( "looknfeels", "datafiles/looknfeels/" );
  resourceProvider->setResourceGroupDirectory( "lua_scripts", "datafiles/lua_scripts/" );

  CEGUI::Imageset::setDefaultResourceGroup( "imagesets" );
  CEGUI::Font::setDefaultResourceGroup( "fonts" );
  CEGUI::Scheme::setDefaultResourceGroup( "schemes" );
  CEGUI::WidgetLookManager::setDefaultResourceGroup( "looknfeels" );
  CEGUI::WindowManager::setDefaultResourceGroup( "layouts" );
 
  CEGUI::ImagesetManager::getSingleton().create( "MainMenuBackground.imageset" );
  CEGUI::ImagesetManager::getSingleton().create( "HistoryModeButton.imageset" );
  CEGUI::ImagesetManager::getSingleton().create( "TutorialButton.imageset" );
  CEGUI::ImagesetManager::getSingleton().create( "CreditsButton.imageset" );
  CEGUI::ImagesetManager::getSingleton().create( "QuitButton.imageset" );
  CEGUI::ImagesetManager::getSingleton().create( "MenuCursor.imageset" );

  CEGUI::SchemeManager::getSingleton().create( "TaharezLook.scheme" );
 
  CEGUI::System::getSingleton().setDefaultMouseCursor( "Objects", "Cursor" ) ;
 
  return CEGUI::WindowManager::getSingleton();
}

void SMainMenu::createGUI( CEGUI::WindowManager& winManager )
{
  CEGUI::DefaultWindow& rootWin = *static_cast<CEGUI::DefaultWindow*>(
                                     winManager.createWindow( "DefaultWindow", "Root" ) ) ;
 
  CEGUI::Window* mainMenu = winManager.loadWindowLayout("MainMenu.layout");

  rootWin.addChildWindow(mainMenu);

  CEGUI::System::getSingleton().setGUISheet( &rootWin ) ;

  menuItems.push_back(MenuStructs::MenuButton());
  menuItems.at(0).button = (CEGUI::PushButton*)winManager.getWindow("MainMenu/HistoryMode");
  menuItems.at(0).button->subscribeEvent( CEGUI::PushButton::EventClicked,
                                          CEGUI::Event::Subscriber(&SMainMenu::handleHistoryMode,
                                          this) );
  menuItems.at(0).id = MenuData::HISTORY_MODE;


  menuItems.push_back(MenuStructs::MenuButton());
  menuItems.at(1).button = (CEGUI::PushButton*)winManager.getWindow("MainMenu/Tutorial");
  menuItems.at(1).id = MenuData::TUTORIAL;

  menuItems.push_back(MenuStructs::MenuButton());
  menuItems.at(2).button = (CEGUI::PushButton*)winManager.getWindow("MainMenu/Credits");
  menuItems.at(2).id = MenuData::CREDITS;

  menuItems.push_back(MenuStructs::MenuButton());
  menuItems.at(3).button = (CEGUI::PushButton*)winManager.getWindow("MainMenu/Quit");
  menuItems.at(3).button->subscribeEvent( CEGUI::PushButton::EventClicked,
                                          CEGUI::Event::Subscriber(&SMainMenu::handleQuit,
                                          this) );
  menuItems.at(3).id = MenuData::QUIT;
}


Then I loaded the second layout when it should be:

Code: Select all

void SPlayerSelection::initializeResourcesMenu()
{
  CEGUI::ImagesetManager::getSingleton().create( "MenuCharacterSelectorBackground.imageset" );
}

void SPlayerSelection::createGUI( CEGUI::WindowManager& winManager )
{
CEGUI::DefaultWindow& rootWin = *static_cast<CEGUI::DefaultWindow*>(
                                     winManager.getWindow("Root") ) ;
CEGUI::Window* selectionMenu = CEGUI::WindowManager::getSingleton().loadWindowLayout("SelectionPlayerMenu.layout");

  rootWin.addChildWindow(selectionMenu);

  CEGUI::System::getSingleton().setGUISheet( &rootWin ) ;
}


But the program crashes when arrives to this line:

Code: Select all

CEGUI::Window* selectionMenu = CEGUI::WindowManager::getSingleton().loadWindowLayout("SelectionPlayerMenu.layout");


Here is the call stack of the error:

Code: Select all

>   CEGUIBase_d.dll!std::_Revranit<std::_Vector_const_iterator<std::_Vector_val<CEGUI::Window *,std::allocator<CEGUI::Window *> > >,std::iterator<std::random_access_iterator_tag,CEGUI::Window *,int,CEGUI::Window * const *,CEGUI::Window * const &> >::operator*()  Line 1046 + 0xf bytes   C++
    CEGUIBase_d.dll!CEGUI::Window::getTargetChildAtPosition(const CEGUI::Vector2 & position, const bool allow_disabled)  Line 743 + 0x11 bytes   C++
    CEGUIBase_d.dll!CEGUI::Window::getTargetChildAtPosition(const CEGUI::Vector2 & position, const bool allow_disabled)  Line 747 + 0x18 bytes   C++
    CEGUIBase_d.dll!CEGUI::System::getTargetWindow(const CEGUI::Vector2 & pt, const bool allow_disabled)  Line 1018 + 0x14 bytes   C++
    CEGUIBase_d.dll!CEGUI::System::updateWindowContainingMouse()  Line 1696 + 0xe bytes   C++
    CEGUIBase_d.dll!CEGUI::Window::setArea_impl(const CEGUI::UVector2 & pos, const CEGUI::UVector2 & size, bool topLeftSizing, bool fireEvents)  Line 1936   C++
    CEGUIBase_d.dll!CEGUI::Window::setSize(const CEGUI::UVector2 & size)  Line 2006   C++
    CEGUIBase_d.dll!CEGUI::GUISheet::GUISheet(const CEGUI::String & type, const CEGUI::String & name)  Line 49   C++
    CEGUIBase_d.dll!CEGUI::TplWindowFactory<CEGUI::GUISheet>::createWindow(const CEGUI::String & name)  Line 75 + 0x39 bytes   C++
    CEGUIBase_d.dll!CEGUI::WindowManager::createWindow(const CEGUI::String & type, const CEGUI::String & name)  Line 113 + 0x1b bytes   C++
    CEGUIBase_d.dll!CEGUI::GUILayout_xmlHandler::elementWindowStart(const CEGUI::XMLAttributes & attributes)  Line 205 + 0x5a bytes   C++
    CEGUIBase_d.dll!CEGUI::GUILayout_xmlHandler::elementStart(const CEGUI::String & element, const CEGUI::XMLAttributes & attributes)  Line 71 + 0xc bytes   C++
    CEGUIExpatParser_d.dll!CEGUI::ExpatParser::startElement(void * data, const char * element, const char * * attr)  Line 105 + 0x37 bytes   C++
    CEGUIExpatParser_d.dll!doContent()  Line 2361 + 0x25 bytes   C
    CEGUIExpatParser_d.dll!contentProcessor()  Line 2023 + 0x34 bytes   C
    CEGUIExpatParser_d.dll!doProlog(const char * (const char *, const char *, char *) parser)  Line 3905 + 0x15 bytes   C
    CEGUIExpatParser_d.dll!prologProcessor()  Line 3636 + 0x3a bytes   C
    CEGUIExpatParser_d.dll!prologInitProcessor()  Line 3452 + 0x15 bytes   C
    CEGUIExpatParser_d.dll!XML_ParseBuffer()  Line 1573 + 0x23 bytes   C
    CEGUIExpatParser_d.dll!XML_Parse()  Line 1544 + 0x11 bytes   C
    CEGUIExpatParser_d.dll!CEGUI::ExpatParser::parseXMLFile(CEGUI::XMLHandler & handler, const CEGUI::String & filename, const CEGUI::String & __formal, const CEGUI::String & resourceGroup)  Line 69 + 0x31 bytes   C++
    CEGUIBase_d.dll!CEGUI::WindowManager::loadWindowLayout(const CEGUI::String & filename, const CEGUI::String & name_prefix, const CEGUI::String & resourceGroup, bool (CEGUI::Window *, CEGUI::String &, CEGUI::String &, void *)* callback, void * userdata)  Line 308 + 0xaa bytes   C++
    SourceCode.exe!SPlayerSelection::createGUI(CEGUI::WindowManager & winManager)  Line 120 + 0x8f bytes   C++


And here is the log of CEGUI:

Code: Select all

25/11/2011 00:46:05 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
25/11/2011 00:46:05 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
25/11/2011 00:46:05 (Std)    +                          (http://www.cegui.org.uk/)                         +
25/11/2011 00:46:05 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

25/11/2011 00:46:05 (Std)    CEGUI::Logger singleton created. (009BF360)
25/11/2011 00:46:05 (Std)    
25/11/2011 00:46:05 (Std)    ********************************************************************************
25/11/2011 00:46:05 (Std)    * Important:                                                                   *
25/11/2011 00:46:05 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
25/11/2011 00:46:05 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
25/11/2011 00:46:05 (Std)    *     support being given; please do not waste our time.                       *
25/11/2011 00:46:05 (Std)    ********************************************************************************
25/11/2011 00:46:05 (Std)    ********************************************************************************
25/11/2011 00:46:05 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
25/11/2011 00:46:05 (Std)    ********************************************************************************
25/11/2011 00:46:05 (Std)    ---- Version 0.7.5 (Build: Nov 19 2010 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
25/11/2011 00:46:05 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
25/11/2011 00:46:05 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
25/11/2011 00:46:05 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
25/11/2011 00:46:05 (Std)    ---- Scripting module is: None ----
25/11/2011 00:46:05 (Std)    ********************************************************************************
25/11/2011 00:46:05 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
25/11/2011 00:46:05 (Std)    ********************************************************************************
25/11/2011 00:46:05 (Std)    
25/11/2011 00:46:05 (Std)    ---- Begining CEGUI System initialisation ----
25/11/2011 00:46:05 (Std)    CEGUI::ImagesetManager singleton created (009C13A0)
25/11/2011 00:46:05 (Std)    CEGUI::FontManager singleton created. (009BFE78)
25/11/2011 00:46:05 (Std)    CEGUI::WindowFactoryManager singleton created
25/11/2011 00:46:05 (Std)    CEGUI::WindowManager singleton created (009C0278)
25/11/2011 00:46:05 (Std)    CEGUI::SchemeManager singleton created. (009C2E60)
25/11/2011 00:46:05 (Std)    CEGUI::MouseCursor singleton created. (009C31C8)
25/11/2011 00:46:05 (Std)    CEGUI::GlobalEventSet singleton created. (009C35A8)
25/11/2011 00:46:05 (Std)    CEGUI::AnimationManager singleton created (009C3738)
25/11/2011 00:46:05 (Std)    CEGUI::WidgetLookManager singleton created. (009C4D80)
25/11/2011 00:46:05 (Std)    CEGUI::WindowRendererManager singleton created (009C5048)
25/11/2011 00:46:05 (Std)    CEGUI::RenderEffectManager singleton created (009C51C8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'DefaultWindow' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'DefaultWindow' windows added. (009C5400)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'DragContainer' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'DragContainer' windows added. (009C5600)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'ScrolledContainer' windows added. (009C5808)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'ClippedContainer' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'ClippedContainer' windows added. (009C5A10)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (009C5C20)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (009C5E38)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (009C5FF8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (009C6218)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (009C63D8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (009C6598)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (009C67C8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (009C6988)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (009C6B48)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (009C6D08)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (009C6EC8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (009C7158)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (009C7518)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (009C75F0)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (009C77B0)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (009C7A10)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (009C7C80)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (009C7E40)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (009C8000)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (009C81C0)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (009C8380)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (009C8540)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (009C8700)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (009C88C0)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (009C8A80)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (009C8D28)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (009C8EE8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (009C90A8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (009C9268)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (009C9428)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (009C95E8)
25/11/2011 00:46:05 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
25/11/2011 00:46:05 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (009C97A8)
25/11/2011 00:46:05 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
25/11/2011 00:46:05 (Std)    CEGUI::System singleton created. (009BEEB8)
25/11/2011 00:46:05 (Std)    ---- CEGUI System initialisation completed ----
25/11/2011 00:46:05 (Std)    
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: Background
25/11/2011 00:46:05 (Std)    ---- Source texture file: MenuBackground.png in resource group: General
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: HistoryMode
25/11/2011 00:46:05 (Std)    ---- Source texture file: HistoryModeOption.png in resource group: (Default)
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: Tutorial
25/11/2011 00:46:05 (Std)    ---- Source texture file: TutorialOption.png in resource group: (Default)
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: Credits
25/11/2011 00:46:05 (Std)    ---- Source texture file: CreditsOption.png in resource group: (Default)
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: Quit
25/11/2011 00:46:05 (Std)    ---- Source texture file: ExitOption.png in resource group: (Default)
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: Objects
25/11/2011 00:46:05 (Std)    ---- Source texture file: MenuCursor.png in resource group: (Default)
25/11/2011 00:46:05 (Std)    Started creation of Scheme from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI GUIScheme name: TaharezLook
25/11/2011 00:46:05 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI Imageset name: TaharezLook
25/11/2011 00:46:05 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
25/11/2011 00:46:05 (Std)    Started creation of Font from XML specification:
25/11/2011 00:46:05 (Std)    ---- CEGUI font name: DejaVuSans-10
25/11/2011 00:46:05 (Std)    ----       Font type: FreeType
25/11/2011 00:46:05 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
25/11/2011 00:46:05 (Std)    ---- Real point size: 10
25/11/2011 00:46:05 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
25/11/2011 00:46:06 (Std)    ===== Look and feel parsing completed =====
25/11/2011 00:46:06 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Button' added. (084CE2B8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Default' added. (0835CC98)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (00A92DD8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (083755A8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (009CA8D0)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (08311E58)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (0855E460)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (0855C780)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (009CC750)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (0838D688)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (0854A920)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (08353920)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (083539F8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (00A92B00)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (0838E558)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (08394C48)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Slider' added. (083A1868)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Static' added. (083A1A28)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (083A1BE8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (083A1DA8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (00A55000)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (00A551C0)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (00A55380)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (00A55540)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (00A55700)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (0854F0E8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (0854F2A8)
25/11/2011 00:46:06 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
25/11/2011 00:46:06 (Std)    WindowRendererFactory 'Falagard/Tree' added. (0854F468)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/Checkbox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/RadioButton' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'TaharezLook/FrameWindow' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'TaharezLook/Titlebar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/Editbox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'TaharezLook/MultiLineEditbox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' Look'N'Feel 'TaharezLook/Menubar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' Look'N'Feel 'TaharezLook/PopupMenu' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' Look'N'Feel 'TaharezLook/MenuItem' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/AltProgressBar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/ProgressBar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/VUMeter' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/VerticalScrollbar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/HorizontalScrollbar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/VerticalScrollbarThumb' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/LargeVerticalScrollbar' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' Look'N'Feel 'TaharezLook/TabButton' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' Look'N'Feel 'TaharezLook/TabControl' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabContentPane' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabButtonPane' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/ComboDropList' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/ComboEditbox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Combobox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/Listbox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' Look'N'Feel 'TaharezLook/ListHeader' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' Look'N'Feel 'TaharezLook/ListHeaderSegment' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' Look'N'Feel 'TaharezLook/MultiColumnList' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' Look'N'Feel 'TaharezLook/Slider' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/SliderThumb' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' Look'N'Feel 'TaharezLook/ScrollablePane' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Spinner' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' Look'N'Feel 'TaharezLook/Tooltip' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'TaharezLook/StaticImage' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'TaharezLook/StaticText' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' Look'N'Feel 'TaharezLook/ItemListbox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' Look'N'Feel 'TaharezLook/ListboxItem' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/GroupBox' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' Look'N'Feel 'TaharezLook/Tree' and RenderEffect ''. (0037BCF4)
25/11/2011 00:46:06 (Error)   CEGUI::InvalidRequestException in file c:\cegui-0.7.5\cegui\src\ceguieventset.cpp(122) : [EventSet::subscribeScriptedEvent] No scripting module is available
25/11/2011 00:46:06 (Error)   CEGUI::InvalidRequestException in file c:\cegui-0.7.5\cegui\src\ceguieventset.cpp(122) : [EventSet::subscribeScriptedEvent] No scripting module is available
25/11/2011 00:46:06 (Std)    ---- Successfully completed loading of GUI layout from 'MainMenu.layout' ----
25/11/2011 00:46:07 (Std)    Started creation of Imageset from XML specification:
25/11/2011 00:46:07 (Std)    ---- CEGUI Imageset name: SelectorBackground
25/11/2011 00:46:07 (Std)    ---- Source texture file: MenuCharacterSelectorBackground.png in resource group: General
25/11/2011 00:46:08 (Std)    Started creation of Scheme from XML specification:
25/11/2011 00:46:08 (Std)    ---- CEGUI GUIScheme name: TaharezLook
25/11/2011 00:46:08 (Std)    ---- Returning existing instance of Scheme named 'TaharezLook'.


And here are the layout files of MainMenu and SelectionPlayer:

Code: Select all

<?xml version="1.0" ?>
 <GUILayout>
         <Window Type="DefaultWindow" Name="MainMenu" >
             
         <Window Type="TaharezLook/StaticImage" Name="MainMenu/Background">
             <Property Name="UnifiedSize" Value="{{1.0,0},{1.0,0}}" />
             <Property Name="Image" Value="set:Background image:Background" />
              <Property Name="FrameEnabled" Value="false" />
         </Window>
     
         <Window Type="TaharezLook/ImageButton" Name="MainMenu/HistoryMode">
             <Property Name="UnifiedAreaRect" Value="{{0.415,0.0},{0.4,0.0},{0.58,0.0},{0.46,0.0}" />
             <Property Name="NormalImage" Value="set:HistoryMode image:ButtonUp" />
             <Property Name="HoverImage" Value="set:HistoryMode image:ButtonHighlighted" />
             <Property Name="PushedImage" Value="set:HistoryMode image:ButtonDown" />
             <Property Name="DisabledImage" Value="set:HistoryMode image:ButtonDisabled" />
             <Event Name="Clicked" Function="handleNewGame"/>
         </Window>

         <Window Type="TaharezLook/ImageButton" Name="MainMenu/Tutorial">
             <Property Name="UnifiedAreaRect" Value="{{0.415,0.0},{0.48,0.0},{0.58,0.0},{0.54,0.0}}" />
             <Property Name="NormalImage" Value="set:Tutorial image:ButtonUp" />
             <Property Name="HoverImage" Value="set:Tutorial image:ButtonHighlighted" />
             <Property Name="PushedImage" Value="set:Tutorial image:ButtonDown" />
             <Property Name="DisabledImage" Value="set:Tutorial image:ButtonDisabled" />
          </Window>

         <Window Type="TaharezLook/ImageButton" Name="MainMenu/Credits">
             <Property Name="UnifiedAreaRect" Value="{{0.415,0.0},{0.56,0.0},{0.58,0.0},{0.62,0.0}}" />
             <Property Name="NormalImage" Value="set:Credits image:ButtonUp" />
             <Property Name="HoverImage" Value="set:Credits image:ButtonHighlighted" />
             <Property Name="PushedImage" Value="set:Credits image:ButtonDown" />
             <Property Name="DisabledImage" Value="set:Credits image:ButtonDisabled" />
          </Window>

         <Window Type="TaharezLook/ImageButton" Name="MainMenu/Quit">
             <Property Name="UnifiedAreaRect" Value="{{0.415,0.0},{0.64,0.0},{0.58,0.0},{0.70,0.0}}" />
             <Property Name="NormalImage" Value="set:Quit image:ButtonUp" />
             <Property Name="HoverImage" Value="set:Quit image:ButtonHighlighted" />
             <Property Name="PushedImage" Value="set:Quit image:ButtonDown" />
             <Property Name="DisabledImage" Value="set:Quit image:ButtonDisabled" />
             <Event Name="Clicked" Function="handleQuit"/>
          </Window>
       
     </Window>
 </GUILayout>


Code: Select all

<?xml version="1.0" ?>
 <GUILayout>
     <Window Type="DefaultWindow" Name="MenuSelection" >

       <Window Type="TaharezLook/StaticImage" Name="SelectorPlayerMenu/SelectorBackground">
         <Property Name="UnifiedSize" Value="{{1.0,0},{1.0,0}}" />
         <Property Name="Image" Value="set:SelectorBackground image:SelectorBackground" />
         <Property Name="FrameEnabled" Value="false" />
       </Window>
     </Window>
 </GUILayout>


Thanks beforehand for the help.

Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests