2024-10-25 14:31:50 -04:00
|
|
|
// Copyright (C) 2024 Intro-Skipper contributors <intro-skipper.org>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only.
|
2024-10-25 14:15:12 -04:00
|
|
|
|
2024-10-19 23:50:41 +02:00
|
|
|
namespace IntroSkipper.Configuration;
|
2022-11-06 21:20:52 -06:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// User interface configuration.
|
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
/// <remarks>
|
|
|
|
/// Initializes a new instance of the <see cref="UserInterfaceConfiguration"/> class.
|
|
|
|
/// </remarks>
|
|
|
|
/// <param name="visible">Skip button visibility.</param>
|
|
|
|
/// <param name="introText">Skip button intro text.</param>
|
|
|
|
/// <param name="creditsText">Skip button end credits text.</param>
|
2024-10-11 10:11:22 -04:00
|
|
|
/// <param name="autoSkip">Auto Skip Intro.</param>
|
|
|
|
/// <param name="autoSkipCredits">Auto Skip Credits.</param>
|
|
|
|
/// <param name="clientList">Auto Skip Clients.</param>
|
|
|
|
public class UserInterfaceConfiguration(bool visible, string introText, string creditsText, bool autoSkip, bool autoSkipCredits, string clientList)
|
2022-11-06 21:20:52 -06:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether to show the skip intro button.
|
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
public bool SkipButtonVisible { get; set; } = visible;
|
2022-11-06 21:20:52 -06:00
|
|
|
|
|
|
|
/// <summary>
|
2023-03-04 00:15:26 -06:00
|
|
|
/// Gets or sets the text to display in the skip intro button in introduction mode.
|
2022-11-06 21:20:52 -06:00
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
public string SkipButtonIntroText { get; set; } = introText;
|
2023-03-04 00:15:26 -06:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the text to display in the skip intro button in end credits mode.
|
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
public string SkipButtonEndCreditsText { get; set; } = creditsText;
|
2024-10-11 10:11:22 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether auto skip intro.
|
|
|
|
/// </summary>
|
|
|
|
public bool AutoSkip { get; set; } = autoSkip;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether auto skip credits.
|
|
|
|
/// </summary>
|
|
|
|
public bool AutoSkipCredits { get; set; } = autoSkipCredits;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating clients to auto skip for.
|
|
|
|
/// </summary>
|
|
|
|
public string ClientList { get; set; } = clientList;
|
2022-11-06 21:20:52 -06:00
|
|
|
}
|