public HowLongToBeatSettings(HowLongToBeat plugin) { // Injecting your plugin instance is required for Save/Load method because Playnite saves data to a location based on what plugin requested the operation. this.plugin = plugin; // Load saved settings. var savedSettings = plugin.LoadPluginSettings <HowLongToBeatSettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { EnableCheckVersion = savedSettings.EnableCheckVersion; EnableTag = savedSettings.EnableTag; ShowHltbImg = savedSettings.ShowHltbImg; AutoAccept = savedSettings.AutoAccept; ShowWhenMismatch = savedSettings.ShowWhenMismatch; EnableIntegrationButton = savedSettings.EnableIntegrationButton; EnableIntegrationInDescription = savedSettings.EnableIntegrationInDescription; IntegrationShowTitle = savedSettings.IntegrationShowTitle; IntegrationTopGameDetails = savedSettings.IntegrationTopGameDetails; EnableIntegrationInCustomTheme = savedSettings.EnableIntegrationInCustomTheme; ProgressBarShowToolTip = savedSettings.ProgressBarShowToolTip; ProgressBarShowTime = savedSettings.ProgressBarShowTime; ProgressBarShowTimeAbove = savedSettings.ProgressBarShowTimeAbove; ProgressBarShowTimeInterior = savedSettings.ProgressBarShowTimeInterior; ProgressBarShowTimeBelow = savedSettings.ProgressBarShowTimeBelow; } }
public HowLongToBeatSettings(HowLongToBeat plugin) { // Injecting your plugin instance is required for Save/Load method because Playnite saves data to a location based on what plugin requested the operation. this.plugin = plugin; // Load saved settings. var savedSettings = plugin.LoadPluginSettings <HowLongToBeatSettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { UserLogin = savedSettings.UserLogin; EnableCheckVersion = savedSettings.EnableCheckVersion; MenuInExtensions = savedSettings.MenuInExtensions; EnableTag = savedSettings.EnableTag; ShowHltbImg = savedSettings.ShowHltbImg; AutoSetCurrentPlayTime = savedSettings.AutoSetCurrentPlayTime; AutoSetCurrentPlayTimeWithoutConfirmation = savedSettings.AutoSetCurrentPlayTimeWithoutConfirmation; AutoAccept = savedSettings.AutoAccept; ShowWhenMismatch = savedSettings.ShowWhenMismatch; EnableIntegrationButton = savedSettings.EnableIntegrationButton; EnableIntegrationInDescription = savedSettings.EnableIntegrationInDescription; IntegrationShowTitle = savedSettings.IntegrationShowTitle; IntegrationTopGameDetails = savedSettings.IntegrationTopGameDetails; EnableIntegrationInCustomTheme = savedSettings.EnableIntegrationInCustomTheme; ProgressBarShowToolTip = savedSettings.ProgressBarShowToolTip; ProgressBarShowTime = savedSettings.ProgressBarShowTime; ProgressBarShowTimeAbove = savedSettings.ProgressBarShowTimeAbove; ProgressBarShowTimeInterior = savedSettings.ProgressBarShowTimeInterior; ProgressBarShowTimeBelow = savedSettings.ProgressBarShowTimeBelow; ProgressBarShowTimeUser = savedSettings.ProgressBarShowTimeUser; ColorFirst = savedSettings.ColorFirst; ColorSecond = savedSettings.ColorSecond; ColorThird = savedSettings.ColorThird; ColorFirstMulti = savedSettings.ColorFirstMulti; ColorSecondMulti = savedSettings.ColorSecondMulti; ColorThirdMulti = savedSettings.ColorThirdMulti; EnableIntegrationFS = savedSettings.EnableIntegrationFS; } }
public HowLongToBeatSettings(HowLongToBeat plugin) { // Injecting your plugin instance is required for Save/Load method because Playnite saves data to a location based on what plugin requested the operation. this.plugin = plugin; // Load saved settings. var savedSettings = plugin.LoadPluginSettings <HowLongToBeatSettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { EnableIntegrationButton = savedSettings.EnableIntegrationButton; EnableIntegrationInDescription = savedSettings.EnableIntegrationInDescription; IntegrationShowTitle = savedSettings.IntegrationShowTitle; IntegrationTopGameDetails = savedSettings.IntegrationTopGameDetails; EnableIntegrationInCustomTheme = savedSettings.EnableIntegrationInCustomTheme; } }