| 30 | } |
| 31 | |
| 32 | void DemoKeeper::createScene() |
| 33 | { |
| 34 | base::BaseDemoManager::createScene(); |
| 35 | createDefaultScene(); |
| 36 | const MyGUI::VectorWidgetPtr& root = MyGUI::LayoutManager::getInstance().loadLayout("HelpPanel.layout"); |
| 37 | if (root.size() == 1) |
| 38 | root.at(0)->findWidget("Text")->castType<MyGUI::TextBox>()->setCaption( |
| 39 | "Demonstration of using different widgets and styles (something like Ogre Demo_Gui)."); |
| 40 | |
| 41 | mMainPanel = new MainPanel(); |
| 42 | mMainPanel->eventAction = MyGUI::newDelegate(this, &DemoKeeper::notifyEventAction); |
| 43 | mMainPanel->addObject("FrameWindow"); |
| 44 | mMainPanel->addObject("Horizontal Scrollbar"); |
| 45 | mMainPanel->addObject("Vertical Scrollbar"); |
| 46 | mMainPanel->addObject("TextBox"); |
| 47 | mMainPanel->addObject("ImageBox"); |
| 48 | mMainPanel->addObject("Render to Texture"); |
| 49 | |
| 50 | mEditorWindow = new EditorWindow(); |
| 51 | |
| 52 | MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &DemoKeeper::notifyFrameStart); |
| 53 | } |
| 54 | |
| 55 | void DemoKeeper::destroyScene() |
| 56 | { |
nothing calls this directly
no test coverage detected