| 25 | } |
| 26 | |
| 27 | void TestWindow::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/) |
| 28 | { |
| 29 | Control::OnInitialise(_parent, _place, "TestWindow.layout"); |
| 30 | |
| 31 | setDialogRoot(mMainWidget); |
| 32 | |
| 33 | assignWidget(mBack, "BackgroundControl"); |
| 34 | |
| 35 | mBackgroundControl = findControl<BackgroundControl>(); |
| 36 | |
| 37 | mTestSkinFileName = SettingsManager::getInstance().getValue("Editor/TestSkinFileName"); |
| 38 | mDefaultFontName = getRoot()->getUserString("DefaultFontName"); |
| 39 | if (mDefaultFontName.empty()) |
| 40 | mDefaultFontName = "Default"; |
| 41 | |
| 42 | MyGUI::Window* window = mMainWidget->castType<MyGUI::Window>(false); |
| 43 | if (window != nullptr) |
| 44 | window->eventWindowButtonPressed += MyGUI::newDelegate(this, &TestWindow::notifyWindowButtonPressed); |
| 45 | } |
| 46 | |
| 47 | void TestWindow::onDoModal() |
| 48 | { |
nothing calls this directly
no test coverage detected