mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-27 18:45:16 +00:00
cmode flag sm::NO_EXIT
This commit is contained in:
@@ -207,7 +207,7 @@ EX namespace dialog {
|
||||
EX void handler(int sym, int uni) {
|
||||
if(cmode & sm::PANNING) handlePanning(sym, uni);
|
||||
dialog::handleNavigation(sym, uni);
|
||||
if(doexiton(sym, uni)) popScreen();
|
||||
if(doexiton(sym, uni) && !(cmode & sm::NO_EXIT)) popScreen();
|
||||
}
|
||||
|
||||
EX int list_size_min, list_size_max, list_fake_key;
|
||||
|
||||
@@ -1905,6 +1905,7 @@ namespace sm {
|
||||
static constexpr int DIALOG_WIDE = (1<<27); // make dialogs wide
|
||||
static constexpr int MOUSEAIM = (1<<28); // mouse aiming active here
|
||||
static constexpr int DIALOG_OFFMAP = (1<<29); // try hard to keep dialogs off the map
|
||||
static constexpr int NO_EXIT = (1<<30); // do not allow to exit the current dialog
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user