From 9dbe22c741f946c72ed474f665893120fa936bd2 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Fri, 1 Mar 2024 09:19:12 -0500 Subject: [PATCH] Add option for persistent skip button --- .../Configuration/PluginConfiguration.cs | 7 ++++++- .../Configuration/configPage.html | 15 +++++++++++++-- .../Controllers/SkipIntroController.cs | 17 +++++++++++++---- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs index d94269e..fcbfa63 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs @@ -122,10 +122,15 @@ public class PluginConfiguration : BasePluginConfiguration public int HidePromptAdjustment { get; set; } = 10; /// - /// Gets or sets a value indicating whether the introduction in the first episode of a season should be skipped. + /// Gets or sets a value indicating whether the introduction in the first episode of a season should be ignored. /// public bool SkipFirstEpisode { get; set; } = true; + /// + /// Gets or sets a value indicating whether the skip button should be displayed for the duration of the intro. + /// + public bool PersistSkipButton { get; set; } = true; + /// /// Gets or sets the amount of intro to play (in seconds). /// diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index be2ca40..2374f5f 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -231,6 +231,17 @@ +
+ + +
+ If checked, skip button will appear through entire intro (offset and timeout are ignored).
+
+
+