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

Method OnInitialise

Tools/SkinEditor/StatisticInfoControl.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 void StatisticInfoControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/)
25 {
26 Control::OnInitialise(_parent, _place, "StatisticInfoControl.layout");
27
28 assignWidget(mText, "Text");
29
30 CommandManager::getInstance()
31 .getEvent("Command_StatisticInfo")
32 ->connect(this, &StatisticInfoControl::command_StatisticInfo);
33
34 getRoot()->setVisible(SettingsManager::getInstance().getValue<bool>("Controls/StatisticInfoControl/Visible"));
35
36 MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &StatisticInfoControl::notifyFrameStart);
37 }
38
39 void StatisticInfoControl::command_StatisticInfo(const MyGUI::UString& _commandName, bool& _result)
40 {

Callers

nothing calls this directly

Calls 5

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
connectMethod · 0.45
getEventMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected