1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +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

@@ -230,12 +230,11 @@ bool draw_ptriangle(cell *c, const transmatrix& V) {
bool cylanim = false;
named_functionality o_key() {
if(on) return named_functionality("ring size", [] {
void o_key(o_funcs& v) {
if(on) v.push_back(named_functionality("ring size", [] {
dialog::editNumber(cscale, 0, 1, .01, .1, "", "");
dialog::reaction = reset;
});
return named_functionality();
}));
}
auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)