From e827d2a69f964865b890553204e863a9319e73de Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 27 Feb 2022 14:51:02 +0100 Subject: [PATCH] tour:: slide_action function --- tour.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tour.cpp b/tour.cpp index d85825ac..49816ceb 100644 --- a/tour.cpp +++ b/tour.cpp @@ -103,6 +103,11 @@ EX void slide_url(presmode mode, char key, string text, string url) { }}); } +EX void slide_action(presmode mode, char key, string text, reaction_t act) { + if(mode == pmHelpEx) + help_extensions.push_back(help_extension{key, text, act}); + } + /** \brief an auxiliary function to enable a visualization in the Canvas land */ EX void setCanvas(presmode mode, char canv) { if(mode == pmStart) {