1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

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

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() {