| 68 | } |
| 69 | |
| 70 | void DemoKeeper::createFailedScene() |
| 71 | { |
| 72 | const MyGUI::VectorWidgetPtr& squad_roots = MyGUI::LayoutManager::getInstance().loadLayout("Squad.layout"); |
| 73 | const MyGUI::VectorWidgetPtr& squad_slot_roots = |
| 74 | MyGUI::LayoutManager::getInstance().loadLayout("SquadSlotFailed.layout"); |
| 75 | |
| 76 | squad_roots.at(0)->setPosition(500, 100); |
| 77 | |
| 78 | //mTextBoxTest = squad_roots.at(0)->findWidget("TextBoxTest")->castType<MyGUI::TextBox>(); |
| 79 | |
| 80 | squad_slot_roots.at(0)->attachToWidget(squad_roots.at(0)); |
| 81 | |
| 82 | MyGUI::ImageBox* image = squad_slot_roots.at(0)->findWidget("SquadSlotPortrait")->castType<MyGUI::ImageBox>(); |
| 83 | |
| 84 | image->eventMouseSetFocus += MyGUI::newDelegate(this, &DemoKeeper::notifyMouseSetFocus); |
| 85 | image->eventMouseLostFocus += MyGUI::newDelegate(this, &DemoKeeper::notifyMouseLostFocus); |
| 86 | } |
| 87 | |
| 88 | |
| 89 | } // namespace demo |
nothing calls this directly
no test coverage detected