| 10 | { |
| 11 | |
| 12 | ControlPanel::ControlPanel(PointerContextManager* _manager) : |
| 13 | mPointerContextManager(_manager) |
| 14 | { |
| 15 | initialiseByAttributes(this); |
| 16 | |
| 17 | const MyGUI::IntSize& size = mMainWidget->getParentSize(); |
| 18 | mMainWidget->setPosition(10, size.height - 10 - mMainWidget->getHeight()); |
| 19 | |
| 20 | mBusy->eventMouseButtonClick += MyGUI::newDelegate(this, &ControlPanel::notifyMouseButtonClick); |
| 21 | mRepair->eventMouseButtonClick += MyGUI::newDelegate(this, &ControlPanel::notifyMouseButtonClick); |
| 22 | mAttack->eventMouseButtonClick += MyGUI::newDelegate(this, &ControlPanel::notifyMouseButtonClick); |
| 23 | } |
| 24 | |
| 25 | void ControlPanel::notifyMouseButtonClick(MyGUI::Widget* _sender) |
| 26 | { |
nothing calls this directly
no test coverage detected