public SuccessStorySettings(SuccessStory 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 <SuccessStorySettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { EnableIntegrationInDescription = savedSettings.EnableIntegrationInDescription; EnableIntegrationInDescriptionWithToggle = savedSettings.EnableIntegrationInDescriptionWithToggle; IntegrationShowTitle = savedSettings.IntegrationShowTitle; IntegrationShowGraphic = savedSettings.IntegrationShowGraphic; IntegrationShowAchievements = savedSettings.IntegrationShowAchievements; IntegrationTopGameDetails = savedSettings.IntegrationTopGameDetails; IntegrationToggleDetails = savedSettings.IntegrationToggleDetails; EnableIntegrationInCustomTheme = savedSettings.EnableIntegrationInCustomTheme; EnableIntegrationButton = savedSettings.EnableIntegrationButton; EnableIntegrationButtonDetails = savedSettings.EnableIntegrationButtonDetails; EnableSteam = savedSettings.EnableSteam; EnableGog = savedSettings.EnableGog; EnableOrigin = savedSettings.EnableOrigin; EnableLocal = savedSettings.EnableLocal; NameSorting = savedSettings.NameSorting; IsAsc = savedSettings.IsAsc; } }
public SuccessStorySettings(SuccessStory 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 <SuccessStorySettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { EnableCheckVersion = savedSettings.EnableCheckVersion; EnableIntegrationInDescription = savedSettings.EnableIntegrationInDescription; EnableIntegrationInDescriptionWithToggle = savedSettings.EnableIntegrationInDescriptionWithToggle; GraphicAllUnlockedByMonth = savedSettings.GraphicAllUnlockedByMonth; GraphicAllUnlockedByDay = savedSettings.GraphicAllUnlockedByDay; IncludeHiddenGames = savedSettings.IncludeHiddenGames; IntegrationShowTitle = savedSettings.IntegrationShowTitle; IntegrationShowGraphic = savedSettings.IntegrationShowGraphic; IntegrationShowAchievements = savedSettings.IntegrationShowAchievements; IntegrationTopGameDetails = savedSettings.IntegrationTopGameDetails; IntegrationToggleDetails = savedSettings.IntegrationToggleDetails; EnableIntegrationInCustomTheme = savedSettings.EnableIntegrationInCustomTheme; EnableIntegrationButton = savedSettings.EnableIntegrationButton; EnableIntegrationButtonDetails = savedSettings.EnableIntegrationButtonDetails; EnableIntegrationButtonHeader = savedSettings.EnableIntegrationButtonHeader; IntegrationShowProgressBar = savedSettings.IntegrationShowProgressBar; IntegrationShowProgressBarIndicator = savedSettings.IntegrationShowProgressBarIndicator; IntegrationShowProgressBarPercent = savedSettings.IntegrationShowProgressBarPercent; EnableSteam = savedSettings.EnableSteam; EnableGog = savedSettings.EnableGog; EnableOrigin = savedSettings.EnableOrigin; EnableRetroAchievements = savedSettings.EnableRetroAchievements; RetroAchievementsUser = savedSettings.RetroAchievementsUser; RetroAchievementsKey = savedSettings.RetroAchievementsKey; EnableLocal = savedSettings.EnableLocal; NameSorting = savedSettings.NameSorting; IsAsc = savedSettings.IsAsc; } }
public SuccessStorySettings(SuccessStory 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 <SuccessStorySettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { EnableCheckVersion = savedSettings.EnableCheckVersion; MenuInExtensions = savedSettings.MenuInExtensions; EnableImageCache = savedSettings.EnableImageCache; EnableIntegrationInDescription = savedSettings.EnableIntegrationInDescription; EnableIntegrationInDescriptionWithToggle = savedSettings.EnableIntegrationInDescriptionWithToggle; EnableIntegrationInDescriptionOnlyIcon = savedSettings.EnableIntegrationInDescriptionOnlyIcon; GraphicAllUnlockedByMonth = savedSettings.GraphicAllUnlockedByMonth; GraphicAllUnlockedByDay = savedSettings.GraphicAllUnlockedByDay; IncludeHiddenGames = savedSettings.IncludeHiddenGames; IntegrationShowTitle = savedSettings.IntegrationShowTitle; IntegrationShowGraphic = savedSettings.IntegrationShowGraphic; IntegrationShowAchievements = savedSettings.IntegrationShowAchievements; IntegrationShowAchievementsCompact = savedSettings.IntegrationShowAchievementsCompact; IntegrationShowAchievementsCompactLocked = savedSettings.IntegrationShowAchievementsCompactLocked; IntegrationShowAchievementsCompactUnlocked = savedSettings.IntegrationShowAchievementsCompactUnlocked; IntegrationShowUserStats = savedSettings.IntegrationShowUserStats; IntegrationTopGameDetails = savedSettings.IntegrationTopGameDetails; IntegrationToggleDetails = savedSettings.IntegrationToggleDetails; EnableIntegrationAxisGraphic = savedSettings.EnableIntegrationAxisGraphic; EnableIntegrationOrdinatesGraphic = savedSettings.EnableIntegrationOrdinatesGraphic; IntegrationShowAchievementsHeight = savedSettings.IntegrationShowAchievementsHeight; IntegrationShowGraphicHeight = savedSettings.IntegrationShowGraphicHeight; IntegrationGraphicOptionsCountAbscissa = savedSettings.IntegrationGraphicOptionsCountAbscissa; IntegrationAchievementsColCount = savedSettings.IntegrationAchievementsColCount; EnableIntegrationInCustomTheme = savedSettings.EnableIntegrationInCustomTheme; EnableIntegrationButton = savedSettings.EnableIntegrationButton; EnableIntegrationButtonDetails = savedSettings.EnableIntegrationButtonDetails; EnableIntegrationButtonHeader = savedSettings.EnableIntegrationButtonHeader; IntegrationShowProgressBar = savedSettings.IntegrationShowProgressBar; IntegrationShowProgressBarIndicator = savedSettings.IntegrationShowProgressBarIndicator; IntegrationShowProgressBarPercent = savedSettings.IntegrationShowProgressBarPercent; EnableSteam = savedSettings.EnableSteam; EnableGog = savedSettings.EnableGog; EnableOrigin = savedSettings.EnableOrigin; EnableXbox = savedSettings.EnableXbox; EnableRetroAchievements = savedSettings.EnableRetroAchievements; EnableRpcs3Achievements = savedSettings.EnableRpcs3Achievements; EnableSteamWithoutWebApi = savedSettings.EnableSteamWithoutWebApi; Rpcs3InstallationFolder = savedSettings.Rpcs3InstallationFolder; EnableRetroAchievementsView = savedSettings.EnableRetroAchievementsView; EnableOneGameView = savedSettings.EnableOneGameView; RetroAchievementsUser = savedSettings.RetroAchievementsUser; RetroAchievementsKey = savedSettings.RetroAchievementsKey; EnableLocal = savedSettings.EnableLocal; LocalPath = savedSettings.LocalPath; EnableManual = savedSettings.EnableManual; NameSorting = savedSettings.NameSorting; IsAsc = savedSettings.IsAsc; EnableRaretyIndicator = savedSettings.EnableRaretyIndicator; lvGamesIcon100Percent = savedSettings.lvGamesIcon100Percent; lvGamesIcon = savedSettings.lvGamesIcon; lvGamesName = savedSettings.lvGamesName; lvGamesLastSession = savedSettings.lvGamesLastSession; lvGamesSource = savedSettings.lvGamesSource; lvGamesProgression = savedSettings.lvGamesProgression; EnableIntegrationFS = savedSettings.EnableIntegrationFS; } }