| 43 | } |
| 44 | |
| 45 | void Control::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view _layoutName) |
| 46 | { |
| 47 | mParent = _parent; |
| 48 | if (_parent != nullptr) |
| 49 | { |
| 50 | initialise(_layoutName, _place); |
| 51 | _parent->mChilds.push_back(this); |
| 52 | } |
| 53 | else |
| 54 | { |
| 55 | initialise(_layoutName, nullptr); |
| 56 | } |
| 57 | |
| 58 | AdviceWidget(mMainWidget); |
| 59 | |
| 60 | for (size_t index = 0; index < getRoot()->getChildCount(); index++) |
| 61 | CreateChilds(this, getRoot()->getChildAt(index)); |
| 62 | } |
| 63 | |
| 64 | void Control::CreateChilds(Control* _parent, MyGUI::Widget* _widget) |
| 65 | { |
no test coverage detected