JoeViking245 Posted May 30, 2019 Share Posted May 30, 2019 I created platform device images that show the platform co ntroller and the corresponding buttons for my cab in which I incorporated into my main theme.I would like to be able to add that image to the pause screen which is (I'm pretty positive) <Image Source="{Binding Path=SelectedPlatform.DeviceImagePath}" /> I tried adding that in and it doesn't work. <Image Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Source="{Binding SelectedPlatform.DeviceImagePath}" VerticalAlignment="Center" HorizontalAlignment="Center" RenderOptions.BitmapScalingMode="HighQuality"> <Image.Effect> <DropShadowEffect BlurRadius="10" Direction="-90" RenderingBias="Quality" ShadowDepth="1" /> </Image.Effect> </Image> My guess is that once the game is loaded, the platform becomes irrelevant so is not stored. Hopefully I'm wrong and just messed up the code. As a workaround I know I can copy that image to all the game-names.png and put them into an "Arcade - Controls Information" folder for the given platform and just use SelectedGame.ArcadeControlsInformationImagePath. This doesn't solve the issue of per-game controls for consoles which I agree would be an extreme undertaking and is not important to me. It would be nice to be able to use the 1 image rather than creating a mess of duplicates. Anyone have any thoughts? Hopefully simply something I overlooked or missed Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 30, 2019 Share Posted May 30, 2019 Use the following binding if you are storing the images in the \LaunchBox\Images\Platforms\[Platform Name]\Device folder. Here it is working in an edit of a Pause theme I was messing with. Source="{Binding Platform.DeviceImagePath}" 2 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted May 30, 2019 Author Share Posted May 30, 2019 That's the ticket! Thanks @Retro808! Now just a little image size adjustment, and I'll be a happy(ier) camper. Easy peasy Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 31, 2019 Share Posted May 31, 2019 Cool. Glad you got it sorted. 1 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 11, 2021 Author Share Posted June 11, 2021 Here I am 2 years later... went to pause a game and this doesn't seem to be working anymore. The Pause Theme works fine. It's just the 'Device' image isn't showing anymore. I double checked that the image is still there, and it is. With LB running, I also checked in the ../Core/Images/Platforms/ [platform] /Device/ (linked/shortcut) folder, and it's 'there' too. I then made a copy of the ../PauseThemes/Default/ folder, edited Default.xaml and changed the Source on one of the <Image> lines as noted above. Still no joy. Did by chance something change with: ? Source="{Binding Platform.DeviceImagePath}" I did do another test to prove to myself the image is good/readable by using Source="{}pack://siteoforigin:,,,/PauseThemes/Default - Copy/NES.png" ..and that worked. But obviously not ideal. Any thoughts or advice would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
JaysArcade Posted September 30, 2021 Share Posted September 30, 2021 I was messing around last night trying to edit a copy of Faeran's PausePie theme for my own use and I couldn't get any of the alternate image bindings to work either. Image Source ="{Binding BackgroundImagePath} works but the other image bindings I tried didn't seem to do anything. I chalked it up to me not really knowing what I was doing, but now I'm not so sure.... Quote Link to comment Share on other sites More sharing options...
faeran Posted September 30, 2021 Share Posted September 30, 2021 49 minutes ago, JaysArcade said: I was messing around last night trying to edit a copy of Faeran's PausePie theme for my own use and I couldn't get any of the alternate image bindings to work either. Image Source ="{Binding BackgroundImagePath} works but the other image bindings I tried didn't seem to do anything. I chalked it up to me not really knowing what I was doing, but now I'm not so sure.... Just ran a few tests and seems like it all should still work. Send me a PM if you need help. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.