I've already posted a question on Popup Menu. This is also related to that question only. The menu is loading in the GUI Window perfectly. But I want another menu to be displayed if the user presses F1 when animation is playing. GUI code and Animation code is in the same project as separate files. I've added the following code in the constructor of the Character Animation code to load the Scheme file:
Code: Select all
std::string schemeFileName = dtCore::FindFileInPathList("CEGUI/schemes/WindowsLook.scheme");
CEGUI::SchemeManager::getSingleton().loadScheme(schemeFileName);
CEGUI::System::getSingleton().setDefaultMouseCursor("WindowsLook", "MouseArrow");
CEGUI::System::getSingleton().setDefaultFont("DejaVuSans-10");
CEGUI::System::getSingleton().getDefaultFont()->setProperty("PointSize", "8");
wm = CEGUI::WindowManager::getSingletonPtr();
I've changed the visiblity of this menu when 'F1' key is Pressed. This code compiles fine. But When I run the project, it runs upto the GUI Window. When I press the start Button in the GUI to run the Character Animation, it shows already exists exception. If I trace this exception in the console window, it displays "A GUI Scheme named 'WindowsLookSkin' is already present in the System". How to load the scheme file and to display the popup in the animation Window also?

