コード例 #1
0
        private IgdbImageOption GetBackgroundManually(List <IgdbServerModels.GameImage> possibleBackgrounds)
        {
            var selection = new List <ImageFileOption>();

            foreach (var artwork in possibleBackgrounds)
            {
                selection.Add(new IgdbImageOption
                {
                    Path  = IgdbMetadataPlugin.GetImageUrl(artwork, ImageSizes.screenshot_med),
                    Image = artwork
                });
            }
            return(plugin.PlayniteApi.Dialogs.ChooseImageFile(
                       selection,
                       string.Format(plugin.PlayniteApi.Resources.GetString("LOCIgdbSelectBackgroundTitle"), IgdbData.name)) as IgdbImageOption);
        }
コード例 #2
0
 public IgdbLazyMetadataProvider(ulong gameId, IgdbMetadataPlugin plugin)
 {
     this.gameId = gameId;
     this.plugin = plugin;
 }
コード例 #3
0
 public IgdbLazyMetadataProvider(MetadataRequestOptions options, IgdbMetadataPlugin plugin)
 {
     this.options = options;
     this.plugin  = plugin;
 }