From e29cf996fa2c0011d5bc3e99763f6b72200b3fc6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 22 Jun 2025 15:51:59 +0200 Subject: [PATCH] some extra parameters for tours --- config.cpp | 2 ++ tour.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index 8c7d72c9..e3f5012c 100644 --- a/config.cpp +++ b/config.cpp @@ -3527,6 +3527,8 @@ EX int config3 = addHook(hooks_configfile, 100, [] { addMessage(XLAT("Save the config to always use %1.", scorefile)); }); + param_i(tour::tour_value, "tval"); + param_ccolor(ccolor::which, "pattern"); param_b(ccolor::live_canvas, "live_canvas") -> editable("apply color/pattern changes to canvas automatically", 'l'); diff --git a/tour.cpp b/tour.cpp index 7b2c2b73..e0d80fb8 100644 --- a/tour.cpp +++ b/tour.cpp @@ -25,6 +25,9 @@ EX bool on; /** \brief should the presentation texts be shown */ EX bool texts = true; +/** \brief helps to automatize interactive presentations */ +EX int tour_value; + EX string tourhelp; /** \brief index of the current slide */ @@ -35,7 +38,7 @@ EX int currentslide; enum presmode { pmStartAll = 0, pmStart = 1, pmFrame = 2, pmStop = 3, pmKey = 4, pmRestart = 5, - pmAfterFrame = 6, pmHelpEx = 7, + pmAfterFrame = 6, pmHelpEx = 7, pmKeyAlt = 8, pmKeyAlt2 = 9, pmGeometry = 11, pmGeometryReset = 13, pmGeometryStart = 15, pmGeometrySpecial = 16 };