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

Method createScene

Demos/Demo_Gui/DemoKeeper.cpp:32–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected