MCPcopy Create free account
hub / github.com/MyGUI/mygui / createScene

Method createScene

Demos/Demo_Controllers/DemoKeeper.cpp:20–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

newDelegateFunction · 0.85
loadLayoutMethod · 0.80
findWidgetMethod · 0.80
sizeMethod · 0.45
setCaptionMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected