1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 19:37:40 +00:00

arg:: most important dialogs can be launched from command line

This commit is contained in:
Zeno Rogue
2018-11-11 11:06:32 +01:00
parent 01dc4997dc
commit 7b4028418e
10 changed files with 153 additions and 37 deletions

View File

@@ -79,8 +79,20 @@ namespace arg {
exit(1);
}
bool dialog_launched = false;
void launch_dialog(const reaction_t& r) {
if(!dialog_launched) {
popScreenAll();
showstartmenu = false;
dialog_launched = true;
}
if(r) pushScreen(r);
}
}
int arg::readCommon() {
// first phase options