| 10 | { |
| 11 | |
| 12 | InformationWindow::InformationWindow(MyGUI::Widget* _parent) : |
| 13 | BaseLayout("InformationWindow.layout", _parent) |
| 14 | { |
| 15 | assignWidget(mInfo, "Info"); |
| 16 | |
| 17 | MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &InformationWindow::notifyFrameStart); |
| 18 | |
| 19 | if (_parent) |
| 20 | { |
| 21 | const MyGUI::IntCoord& coord = _parent->getClientCoord(); |
| 22 | const MyGUI::IntSize& size = mMainWidget->getSize(); |
| 23 | mMainWidget->setPosition( |
| 24 | MyGUI::IntPoint(getRand(0, coord.width - size.width), getRand(0, coord.height - size.height))); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | InformationWindow::~InformationWindow() |
| 29 | { |
nothing calls this directly
no test coverage detected