| 18 | } |
| 19 | |
| 20 | void DemoKeeper::createScene() |
| 21 | { |
| 22 | base::BaseDemoManager::createScene(); |
| 23 | MyGUI::LayoutManager::getInstance().loadLayout("Wallpaper.layout"); |
| 24 | const MyGUI::VectorWidgetPtr& root = MyGUI::LayoutManager::getInstance().loadLayout("HelpPanel.layout"); |
| 25 | if (root.size() == 1) |
| 26 | root.at(0)->findWidget("Text")->castType<MyGUI::TextBox>()->setCaption( |
| 27 | "ControllerFadeAlpha and ControllerPosition examples."); |
| 28 | |
| 29 | mIsAnim = false; |
| 30 | |
| 31 | mMenu1 = new State("Menu1.layout", ControllerType::Inertional); |
| 32 | mMenu1->eventButtonPress = MyGUI::newDelegate(this, &DemoKeeper::notifyButtonPress); |
| 33 | |
| 34 | mMenu2 = new State("Menu2.layout", ControllerType::Accelerated); |
| 35 | mMenu2->eventButtonPress = MyGUI::newDelegate(this, &DemoKeeper::notifyButtonPress); |
| 36 | |
| 37 | mMenu3 = new State("Menu3.layout", ControllerType::Slowed); |
| 38 | mMenu3->eventButtonPress = MyGUI::newDelegate(this, &DemoKeeper::notifyButtonPress); |
| 39 | |
| 40 | mMenu4 = new State("Menu4.layout", ControllerType::Jump); |
| 41 | mMenu4->eventButtonPress = MyGUI::newDelegate(this, &DemoKeeper::notifyButtonPress); |
| 42 | |
| 43 | mMenu1->setVisible(true); |
| 44 | mType = ControllerType::Inertional; |
| 45 | } |
| 46 | |
| 47 | void DemoKeeper::destroyScene() |
| 48 | { |
nothing calls this directly
no test coverage detected