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

Method OnInitialise

Tools/EditorFramework/MessageBoxFadeControl.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 void MessageBoxFadeControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/)
20 {
21 Control::OnInitialise(_parent, _place, "MessageBoxFadeControl.layout");
22
23 MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &MessageBoxFadeControl::notifyFrameStart);
24
25 mMaxAlpha = mMainWidget->getAlpha();
26 mMainWidget->setAlpha(0);
27 }
28
29
30 void MessageBoxFadeControl::notifyFrameStart(float _time)

Callers

nothing calls this directly

Calls 3

newDelegateFunction · 0.85
getAlphaMethod · 0.80
setAlphaMethod · 0.45

Tested by

no test coverage detected