1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 10:27:45 +00:00

shmup:: rewritten shmup configuration in OOP style

This commit is contained in:
Zeno Rogue
2018-11-18 03:18:11 +01:00
parent 97c405fc87
commit 8e2727882e
7 changed files with 254 additions and 229 deletions

View File

@@ -557,8 +557,7 @@ void showChangeMode() {
#if ISMOBILE==1
restart_game(rg::shmup);
#else
multi::shmupcfg = shmup::on;
pushScreen(shmup::showShmupConfig);
shmup::configure();
#endif
}
else if(xuni == 'h' && !shmup::on)
@@ -762,10 +761,8 @@ void showStartMenu() {
clearMessages();
welcomeMessage();
stampbase = ticks;
if(uni == 's') {
multi::shmupcfg = shmup::on;
pushScreen(multi::showShmupConfig);
}
if(uni == 's')
shmup::configure();
}
else if(uni == 'Z') {
popScreenAll();
@@ -931,7 +928,7 @@ int read_menu_args() {
PHASEFROM(2); launch_dialog(showChangeMode);
}
else if(argis("-d:shmup")) {
PHASEFROM(2); launch_dialog(shmup::showShmupConfig);
PHASEFROM(2); launch_dialog(); shmup::configure();
}
else return 1;
return 0;