1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-07 20:02:50 +00:00

seuphorica:: made the intro screen simpler

This commit is contained in:
Zeno Rogue 2025-06-25 10:34:30 +02:00
parent f642db223b
commit 5e104b2120

View File

@ -1410,6 +1410,9 @@ void seuphorica_setgeom() {
dialog::display(); dialog::display();
} }
bool show_customize = false;
void do_show_customize();
void seuphorica_newgame() { void seuphorica_newgame() {
cmode = sm::DARKEN; cmode = sm::DARKEN;
gamescreen(); gamescreen();
@ -1421,11 +1424,12 @@ void seuphorica_newgame() {
dialog::addSelItem("geometry", current_seuphgeom == -1 ? "custom" : seuphgeoms[current_seuphgeom].name, 'g'); dialog::addSelItem("geometry", current_seuphgeom == -1 ? "custom" : seuphgeoms[current_seuphgeom].name, 'g');
dialog::add_action_push(seuphorica_setgeom); dialog::add_action_push(seuphorica_setgeom);
if(!show_customize) {
dialog::addItem("start new standard game", 's'); dialog::addItem("start new standard game", 's');
dialog::add_action([] { dialog::add_action([] {
save_old_game_if_needed(); save_old_game_if_needed();
reset_rv(); reset_rv();
restart("", "", ""); restart((its(daily) + "9").c_str(), "D", "8");
reset_seuphorica_screen(); reset_seuphorica_screen();
}); });
if(!is_daily) { if(!is_daily) {
@ -1438,6 +1442,14 @@ void seuphorica_newgame() {
reset_seuphorica_screen(); reset_seuphorica_screen();
}); });
} }
}
dialog::addBoolItem_action("customize grame", show_customize, 'C');
if(show_customize) do_show_customize();
dialog::addBack();
dialog::display();
}
void do_show_customize() {
dialog::addBreak(100); dialog::addBreak(100);
dialog::start_list(900, 900, 'A'); dialog::start_list(900, 900, 'A');
int randoms = 0; int randoms = 0;
@ -1517,9 +1529,6 @@ void seuphorica_newgame() {
new_game(); new_game();
reset_seuphorica_screen(); reset_seuphorica_screen();
}); });
dialog::addBack();
dialog::display();
} }
void seuphorica_settings() { void seuphorica_settings() {