| 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 | { |
nothing calls this directly
no test coverage detected