From 98b0ebe6ce9927db1190bf9de9ec67506004ace7 Mon Sep 17 00:00:00 2001
From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com>
Date: Thu, 5 May 2022 18:26:02 -0500
Subject: [PATCH] Allow configuring show/hide prompt times
---
.../Configuration/PluginConfiguration.cs | 10 ++++++++
.../Configuration/configPage.html | 25 +++++++++++++++++++
.../Controllers/SkipIntroController.cs | 5 ++++
.../ScheduledTasks/FingerprinterTask.cs | 6 +----
4 files changed, 41 insertions(+), 5 deletions(-)
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs
index 3508a90..3996c9c 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs
@@ -22,4 +22,14 @@ public class PluginConfiguration : BasePluginConfiguration
/// If the output of fpcalc should be cached to the filesystem.
///
public bool CacheFingerprints { get; set; }
+
+ ///
+ /// Seconds before the intro starts to show the skip prompt at.
+ ///
+ public int ShowPromptAdjustment { get; set; } = 5;
+
+ ///
+ /// Seconds after the intro starts to hide the skip prompt at.
+ ///
+ public int HidePromptAdjustment { get; set; } = 10;
}
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
index d5a0520..e44a5de 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
@@ -20,6 +20,23 @@
Caching fingerprints avoids having to re-run fpcalc on each file, at the expense of disk usage.
+
+
+
+
+
+ Seconds before the introduction starts to display the skip prompt at.
+
+
+
+
+
+
+
+ Seconds after the introduction starts to hide the skip prompt at.
+