nevarim
08-12-2010 14:36:35
hi all i have a problem compiling caelum with cegui and vs10
i posted in cegui forum for a solution upgrade with this function
you have already a solution?
thanks
Nevarim
i posted in cegui forum for a solution upgrade with this function
void CaelumLabFrameListener::initGui () {
mGuiRenderer.reset(new CEGUI::OgreCEGUIRenderer (
mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr));
mGuiSystem.reset(new CEGUI::System (mGuiRenderer.get()));
CEGUI::Logger::getSingleton ().setLoggingLevel (CEGUI::Informative);
// load scheme and set up defaults
CEGUI::SchemeManager::getSingleton ().loadScheme((CEGUI::utf8*)"TaharezLookSkin.scheme");
mGuiSystem->setDefaultMouseCursor ((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
// BlueHighway-10 does not rescale with resolution. This is desirable.
mGuiSystem->setDefaultFont ((CEGUI::utf8*)"BlueHighway-10");
CEGUI::WindowManager* wmgr = CEGUI::WindowManager::getSingletonPtr ();
CEGUI::Window* sheet = wmgr->loadWindowLayout (CEGUI::String("CaelumLab.layout"));
mGuiSystem->setGUISheet (sheet);
CEGUI::Window* wnd = CEGUI::WindowManager::getSingleton().getWindow("CaelumLab");
wnd->subscribeEvent(CEGUI::Window::EventMouseMove,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleMouseMove, this));
wnd->subscribeEvent(CEGUI::Window::EventMouseButtonUp,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleMouseUp, this));
wnd->subscribeEvent(CEGUI::Window::EventMouseButtonDown,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleMouseDown, this));
(getWidget<CEGUI::Scrollbar> ("CaelumLab/TimeScaleScrollbar"))->getThumb ()->subscribeEvent(
CEGUI::Window::EventMouseDoubleClick,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleTimeScaleDoubleClick, this));
(getWidget<CEGUI::Scrollbar> ("CaelumLab/DumpButton"))->subscribeEvent(
CEGUI::Window::EventMouseClick,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleDumpClick, this));
(getWidget<CEGUI::Scrollbar> ("CaelumLab/ResetButton"))->subscribeEvent(
CEGUI::Window::EventMouseClick,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleResetClick, this));
(getWidget<CEGUI::Scrollbar> ("CaelumLab/QuitButton"))->subscribeEvent(
CEGUI::Window::EventMouseClick,
CEGUI::Event::Subscriber(&CaelumLabFrameListener::handleQuitClick, this));
mScriptingUI.init ();
initMaterialSchemeUI ();
}
you have already a solution?
thanks
Nevarim