| 19 | } |
| 20 | |
| 21 | void DemoKeeper::createScene() |
| 22 | { |
| 23 | base::BaseDemoManager::createScene(); |
| 24 | MyGUI::LayoutManager::getInstance().loadLayout("Wallpaper.layout"); |
| 25 | const MyGUI::VectorWidgetPtr& root = MyGUI::LayoutManager::getInstance().loadLayout("HelpPanel.layout"); |
| 26 | if (root.size() == 1) |
| 27 | root.at(0)->findWidget("Text")->castType<MyGUI::TextBox>()->setCaption( |
| 28 | "Panel View control implementation."); |
| 29 | |
| 30 | MyGUI::ResourceManager::getInstance().load("ButtonExpandSkin.xml"); |
| 31 | |
| 32 | mView = new PanelViewWindow(); |
| 33 | mPanelDirector = new PanelDirector(); |
| 34 | mPanelDynamic = new PanelDynamic(); |
| 35 | mPanelStatic = new PanelStatic(); |
| 36 | |
| 37 | mPanelDirector->eventChangePanels = MyGUI::newDelegate(this, &DemoKeeper::notifyChangePanels); |
| 38 | mView->getPanelView()->addItem(mPanelDirector); |
| 39 | mView->getPanelView()->addItem(mPanelDynamic); |
| 40 | mView->getPanelView()->addItem(mPanelStatic); |
| 41 | } |
| 42 | |
| 43 | void DemoKeeper::destroyScene() |
| 44 | { |
nothing calls this directly
no test coverage detected