1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 03:27:55 +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

@@ -499,9 +499,8 @@ namespace flocking {
dialog::display();
}
named_functionality o_key() {
if(vizid == &flock_id) return named_dialog("flocking", show);
return named_functionality();
void o_key(o_funcs& v) {
if(vizid == &flock_id) v.push_back(named_dialog("flocking", show));
}
auto hooks =