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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user