1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-10 11:14:07 +00:00

rogueviz::ads:: start tour from the menu

This commit is contained in:
Zeno Rogue 2025-04-05 23:33:37 +02:00
parent e29cbda259
commit 5feae0dd9c
3 changed files with 19 additions and 4 deletions

View File

@ -252,4 +252,6 @@ int generate_mouseovers();
bool all_params_default(); bool all_params_default();
void start_relhell_tour();
}} }}

View File

@ -268,19 +268,25 @@ void pick_the_game() {
dialog::addInfo(XLAT("abandon all hope of going faster than light")); dialog::addInfo(XLAT("abandon all hope of going faster than light"));
dialog::addBreak(200); dialog::addBreak(200);
dialog::addBigItem("anti-de Sitter space", '1'); dialog::addBigItem("anti-de Sitter space", 'a');
dialog::add_action([] { popScreen(); run_ads_game_std(); add_ads_cleanup(); clearMessages(); }); dialog::add_action([] { popScreen(); run_ads_game_std(); add_ads_cleanup(); clearMessages(); });
dialog::addInfo(XLAT("shoot asteroids, mine resources, collect gold")); dialog::addInfo(XLAT("shoot asteroids, mine resources, collect gold"));
dialog::addBreak(100); dialog::addBreak(100);
dialog::addBigItem("de Sitter space", '2'); dialog::addBigItem("de Sitter space", 'd');
dialog::add_action([] { popScreen(); run_ds_game_std(); add_ds_cleanup(); clearMessages(); }); dialog::add_action([] { popScreen(); run_ds_game_std(); add_ds_cleanup(); clearMessages(); });
dialog::addInfo(XLAT("avoid energy balls, but do not let the main star run away!")); dialog::addInfo(XLAT("avoid energy balls, but do not let the main star run away!"));
dialog::addBreak(100); dialog::addBreak(100);
dialog::addItem("not now", '3'); dialog::addBigItem("guided tour", 't');
dialog::add_action(start_relhell_tour);
dialog::addInfo(XLAT("but what exactly are these spaces?"));
dialog::addBreak(100);
dialog::addItem("not now", 'q');
dialog::add_action([] { quitmainloop = true; }); dialog::add_action([] { quitmainloop = true; });
dialog::display(); dialog::display();

View File

@ -719,7 +719,14 @@ int pohooks =
cb(XLAT("Relative Hell guided tour"), &relhell_tour[0], 'S'); cb(XLAT("Relative Hell guided tour"), &relhell_tour[0], 'S');
}); });
}
void start_relhell_tour() {
popScreenAll();
tour::slides = &ads_tour::relhell_tour[0];
tour::start();
if(!tour::on) tour::start();
}
} }
} }
}