1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-17 18:49:43 +00:00

changemode uses the new dialogkey system

This commit is contained in:
Zeno Rogue
2021-03-06 11:00:36 +01:00
parent 970d65c71a
commit 009e1e2eb4
2 changed files with 44 additions and 63 deletions

View File

@@ -146,6 +146,8 @@ EX namespace dialog {
EX void add_action_push(const reaction_t& action) { add_action([action] { pushScreen(action); }); }
EX void add_action_push_clear(const reaction_t& action) { add_action([action] { clearMessages(); pushScreen(action); }); }
EX void handler(int sym, int uni) {
dialog::handleNavigation(sym, uni);
if(doexiton(sym, uni)) popScreen();