| 62 | } |
| 63 | |
| 64 | void Control::CreateChilds(Control* _parent, MyGUI::Widget* _widget) |
| 65 | { |
| 66 | AdviceWidget(_widget); |
| 67 | |
| 68 | std::string_view controlType = _widget->getUserString("ControlType"); |
| 69 | if (!controlType.empty()) |
| 70 | { |
| 71 | std::string_view controlLayout = _widget->getUserString("ControlLayout"); |
| 72 | |
| 73 | Control* control = components::FactoryManager::GetInstance().CreateItem<Control>(controlType); |
| 74 | if (control != nullptr) |
| 75 | { |
| 76 | control->OnInitialise(_parent, _widget, controlLayout); |
| 77 | return; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | for (size_t index = 0; index < _widget->getChildCount(); index++) |
| 82 | CreateChilds(_parent, _widget->getChildAt(index)); |
| 83 | } |
| 84 | |
| 85 | void Control::notifyMouseButtonClick(MyGUI::Widget* _sender) |
| 86 | { |
nothing calls this directly
no test coverage detected