| 26 | } |
| 27 | |
| 28 | void SettingsResourcesControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view _layoutName) |
| 29 | { |
| 30 | Control::OnInitialise(_parent, _place, _layoutName); |
| 31 | |
| 32 | assignWidget(mResourceAdd, "ResourceAdd"); |
| 33 | assignWidget(mResourceDelete, "ResourceDelete"); |
| 34 | assignWidget(mResources, "Resources"); |
| 35 | |
| 36 | mTextFieldControl = new TextFieldControl(); |
| 37 | mTextFieldControl->Initialise(); |
| 38 | mTextFieldControl->eventEndDialog.connect(this, &SettingsResourcesControl::notifyEndDialog); |
| 39 | |
| 40 | mResourceAdd->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsResourcesControl::notifyClickAdd); |
| 41 | mResourceDelete->eventMouseButtonClick += |
| 42 | MyGUI::newDelegate(this, &SettingsResourcesControl::notifyClickDelete); |
| 43 | } |
| 44 | |
| 45 | void SettingsResourcesControl::loadSettings() |
| 46 | { |
nothing calls this directly
no test coverage detected