HyperRogue help is now directly offered when displaying context help

This commit is contained in:
Zeno Rogue 2022-08-05 22:52:39 +02:00
parent c87bca5da0
commit eec0c968d9
1 changed files with 4 additions and 1 deletions

View File

@ -845,7 +845,10 @@ int windtotal;
EX hookset<void(cell*)> hooks_mouseover;
template<class T> void set_help_to(T t) {
help = bygen([t] { gotoHelpFor(t); });
help = bygen([t] {
gotoHelpFor(t);
help_extensions.push_back(help_extension{'h', XLAT("HyperRogue help"), [] () { buildHelpText(); }});
});
}
EX void describeMouseover() {