| 27 | } |
| 28 | |
| 29 | void DataListUI::bindEvents(MyGUI::Widget* _widget) |
| 30 | { |
| 31 | MyGUI::Button* button = _widget->castType<MyGUI::Button>(false); |
| 32 | if (button != nullptr) |
| 33 | { |
| 34 | std::string_view event = button->getUserString("Event"); |
| 35 | if (!event.empty()) |
| 36 | button->eventMouseButtonClick += MyGUI::newDelegate(this, &DataListUI::notifyMouseButtonClick); |
| 37 | } |
| 38 | |
| 39 | for (size_t index = 0; index < _widget->getChildCount(); index++) |
| 40 | bindEvents(_widget->getChildAt(index)); |
| 41 | } |
| 42 | |
| 43 | void DataListUI::notifyMouseButtonClick(MyGUI::Widget* _sender) |
| 44 | { |
nothing calls this directly
no test coverage detected