1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 11:08:05 +00:00

restructured menus

This commit is contained in:
Zeno Rogue
2019-03-30 23:45:28 +01:00
parent bca98e9247
commit 54a32441a7
8 changed files with 411 additions and 439 deletions

View File

@@ -89,6 +89,8 @@ namespace dialog {
add_key_action(lastItem().key, action);
}
void add_action_push(const reaction_t& action) { add_action([action] { pushScreen(action); }); }
void handler(int sym, int uni) {
dialog::handleNavigation(sym, uni);
if(doexiton(sym, uni)) popScreen();