MCPcopy Create free account
hub / github.com/TurningWheel/Barony / onClickEntry

Method onClickEntry

src/mod_tools.cpp:358–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void GameModeManager_t::Tutorial_t::Menu_t::onClickEntry()
359{
360 if ( this->selectedMenuItem == -1 )
361 {
362 return;
363 }
364 buttonStartSingleplayer(nullptr);
365 gameModeManager.setMode(GameModeManager_t::GAME_MODE_TUTORIAL_INIT);
366 if ( gameModeManager.Tutorial.FirstTimePrompt.showFirstTimePrompt )
367 {
368 gameModeManager.Tutorial.FirstTimePrompt.showFirstTimePrompt = false;
369 gameModeManager.Tutorial.writeToDocument();
370 }
371 gameModeManager.Tutorial.startTutorial(gameModeManager.Tutorial.levels.at(this->selectedMenuItem).filename);
372 steamStatisticUpdate(STEAM_STAT_TUTORIAL_ENTERED, ESteamStatTypes::STEAM_STAT_INT, 1);
373}
374
375void GameModeManager_t::Tutorial_t::FirstTimePrompt_t::createPrompt()
376{

Callers 2

handleMainMenuFunction · 0.80

Calls 5

setModeMethod · 0.80
writeToDocumentMethod · 0.80
startTutorialMethod · 0.80
buttonStartSingleplayerFunction · 0.70
steamStatisticUpdateFunction · 0.70

Tested by

no test coverage detected