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:
parent
e29cbda259
commit
5feae0dd9c
@ -252,4 +252,6 @@ int generate_mouseovers();
|
||||
|
||||
bool all_params_default();
|
||||
|
||||
void start_relhell_tour();
|
||||
|
||||
}}
|
||||
|
@ -268,19 +268,25 @@ void pick_the_game() {
|
||||
dialog::addInfo(XLAT("abandon all hope of going faster than light"));
|
||||
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::addInfo(XLAT("shoot asteroids, mine resources, collect gold"));
|
||||
|
||||
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::addInfo(XLAT("avoid energy balls, but do not let the main star run away!"));
|
||||
|
||||
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::display();
|
||||
|
@ -719,7 +719,14 @@ int pohooks =
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user