1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-22 21:46:57 +00:00

rewritten the o-key functionality to let the user choose from several applicable options

This commit is contained in:
Zeno Rogue
2020-05-15 15:53:29 +02:00
parent 437722fe58
commit ed6cd3cec6
8 changed files with 46 additions and 37 deletions

View File

@@ -258,9 +258,8 @@ auto sbhook = addHook(hooks_args, 100, [] {
}
else return 1;
return 0;
}) + addHook(hooks_o_key, 91, [] {
if(in) return named_dialog(XLAT("select a puzzle"), show_menu);
else return named_functionality();
}) + addHook(hooks_o_key, 91, [] (o_funcs& v) {
if(in) v.push_back(named_dialog(XLAT("select a puzzle"), show_menu));
});
#endif