| 10 | { |
| 11 | |
| 12 | State::State(std::string_view _layout, ControllerType _type) : |
| 13 | wraps::BaseLayout(_layout) |
| 14 | { |
| 15 | mType = _type; |
| 16 | |
| 17 | assignWidget(mButton1, "Button1"); |
| 18 | assignWidget(mButton2, "Button2"); |
| 19 | assignWidget(mButton3, "Button3"); |
| 20 | assignWidget(mButton4, "Button4"); |
| 21 | |
| 22 | mMainWidget->setVisible(false); |
| 23 | mButton1->setVisible(false); |
| 24 | mButton2->setVisible(false); |
| 25 | mButton3->setVisible(false); |
| 26 | mButton4->setVisible(false); |
| 27 | |
| 28 | mButton1->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick); |
| 29 | mButton2->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick); |
| 30 | mButton3->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick); |
| 31 | mButton4->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick); |
| 32 | } |
| 33 | |
| 34 | State::~State() |
| 35 | { |
nothing calls this directly
no test coverage detected