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

Method createScene

Demos/Demo_PanelView/DemoKeeper.cpp:21–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 8

newDelegateFunction · 0.85
loadLayoutMethod · 0.80
findWidgetMethod · 0.80
getPanelViewMethod · 0.80
sizeMethod · 0.45
setCaptionMethod · 0.45
loadMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected