From 609064579cbc28db78d4771ca6cbc4c7309d83fd Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 10 Feb 2025 11:59:11 +0100 Subject: [PATCH] mouseover hook --- help.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/help.cpp b/help.cpp index e5deaa90..b243f25c 100644 --- a/help.cpp +++ b/help.cpp @@ -893,6 +893,8 @@ int windtotal; EX hookset hooks_mouseover; +EX hookset hooks_global_mouseover; + template void set_help_to(T t) { help = bygen([t] { gotoHelpFor(t); @@ -903,6 +905,8 @@ template void set_help_to(T t) { EX void describeMouseover() { DEBBI(DF_GRAPH, ("describeMouseover")); + if(callhandlers(0, hooks_global_mouseover)) return; + cell *c = mousing ? mouseover : playermoved ? NULL : centerover; string& out = mouseovers; if(!c || instat || getcstat != '-') { }