Jump to content
LaunchBox Community Forums

How to Random Select Game Image with Same Name?


Recommended Posts

From Tips and Tricks: (How do you make it so that bigbox selects 1 of many game images of the same game ending in game-1.gif, game-2.gif, game-3.gif, etc? Goal is using custom folders and not paths selected in launchbox options) @Retro808

	<TextBlock x:Name="GameGifs" >
				<TextBlock.Text>
					<MultiBinding StringFormat="{}pack://siteoforigin:,,,/StartupThemes/LBFade/Images/Gifs/{0}/{1}.gif">
						<Binding Path="SelectedGame.Platform" />
						<Binding Path="SelectedGame.Title" />
					</MultiBinding>
				</TextBlock.Text>
			</TextBlock>
			<Image gif:ImageBehavior.AnimatedSource="{Binding Text, ElementName=GameGifs}" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality"
            Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}"  />	 
Edited by The Mask
Link to comment
Share on other sites

Are you trying to have many images for one game that you would then randomly select, or are you trying to solve the issue where a platform may have games that have the same name and you are wanting to differentiate between them?

Link to comment
Share on other sites

19 minutes ago, The Mask said:

"trying to have many images for one game that you would then randomly select"

this

That's going to require a plugin to facilitate the randomness you are seeking. Unfortunately, I'm not entirely sure if there's already one floating around for this exact purpose.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...