MCPcopy Create free account
hub / github.com/MyGUI/mygui / OnInitialise

Method OnInitialise

Tools/SkinEditor/TestWindow.cpp:27–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
getUserStringMethod · 0.80
getValueMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected