when i have three SceneManagers, i can't see the myui

ogre2013

02-06-2013 14:47:35

I create mygui buttons in the SceneManager 1.When i go to the another SceneManager, I can't no see the buttons.
How to make them seen?


std::string fontname = OgreFramework::getSingletonPtr()->getMyFont()->getFontName();
mTankGame = MyGUI::Gui::getInstance().createWidget<MyGUI::Button>("Button", MyGUI::IntCoord(20, 150, 120, 30), MyGUI::Align::Default, "Back");
mTankGame->setFontName(fontname);
mTankGame->setCaption(L"#ff0000坦克游戏");
mTankGame->setTextShadow(true);

Altren

03-06-2013 18:18:48

Whenever you change SceneManager you also need to tell MyGUI about that. Something like this:
(MyGUI::OgrePlatform*)mPlatform->getRenderManagerPtr()->setSceneManager(newSceneManager);

ogre2013

04-06-2013 05:34:06

o ~~~~~~~~~
thank you.