1
0
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:
Zeno Rogue
2025-10-09 08:54:16 +02:00
parent 91ba522cd3
commit 0d1c405d81
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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