Mr. RetroLust Posted October 31, 2018 Share Posted October 31, 2018 1 hour ago, Super_Paulie said: i thought this would work: <Grid> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="440" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="440" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> </Grid> but if there is no Marquee set in launchbox then it shows BoxArt in its place instead of "nothing". So the box art is then shown on top of the clear logo. I think im getting closer, but im a bit stuck now...!if If i'm not mistaken you can go to options within launchbox and change the image priorities for I think box front (could be another image category) if you check clear logo in here and push it further up in priority it should work, mightvtake you some experimenting with this by putting clear logo to the far top to test it out. Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 (edited) that worked! So now it shows a marquee if one is added by myself (disabled from the download options as the defaults are the wrong size/dimension). If the marquee is empty it shows the clear logo in its place, this works absolutely perfectly, thanks a bunch guys! Can anyone tell me how to reference a file directly, i have been struggling with that one. Say the file is located in "C:\Launchbox\Images" and called image.png. I have tried to reference it directly like "C:\Launchbox\Images\image.png" but no dice. Any thoughts on this one? Sorry guys, im not great at coding so i have been struggling on a bit blind here. In the below example it works but there "XX" is i would like a static image that i can produce. The below results in EITHER ClearLogoImagePath or MarqueeImagePath being at ZIndex 0, depending on if that file is present or not. <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Image Source="XX" Panel.ZIndex="0" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffectRadius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="455" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="455" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> i am close to what i want though! and frankly the above is still acceptable for me but i would prefer to include that static image at ZIndex0 instead of clearLogo/Marquee. Thanks so much guys! Edited November 1, 2018 by Super_Paulie 1 Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 21 minutes ago, Super_Paulie said: <Image x:Name="1" Source="pack://siteoforigin:,,,/Images/1.png" Stretch="Uniform" Height="445" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> 1 Quote Link to comment Share on other sites More sharing options...
Mr. RetroLust Posted November 1, 2018 Share Posted November 1, 2018 (edited) Glad it worked out with the logo (I'm going to try this out for my own setup as well) I'll tag some people that may be able to help you further on the technical questions: @Jason Carr @RetroHumanoid Edit: oops you already posted Retrohumanoid lol Edited November 1, 2018 by Mr. RetroLust 1 Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 great i'll try that after my lunch! See attached for current update. A ROM without a marquee (uses Clear Logo instead and currently the clearLogo again behind but faded) and a ROM with a marquee file. 2 Quote Link to comment Share on other sites More sharing options...
Retro808 Posted November 1, 2018 Share Posted November 1, 2018 Looks really nice @Super_Paulie. Following this thread pretty closely as I have been waiting on marquee support to get some love. Great to see in the mean time theme edits can get us some good views. It missed out by a few places on the last feature request poll. So hopefully the next poll we can push more votes. 1 Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 (edited) 1 hour ago, RetroHumanoid said: sadly that didnt seem to work for some reason. The file i have renamed "defaultMarq". It basically doesnt show the image at all, any thoughts? basically ive got 3 levels of images on top of each other. The "blurry" layer which i need as a static image based somewhere. The clear logo and then the marquee. <Image Source="pack://siteoforigin:,,,/Images/defaultMarq.jpg" Panel.ZIndex="0" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="440" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="440" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> no matter what i put in bold above it just doesnt show that image. I tried even removing all of the above and having: <Image x:Name="1" Source="pack://siteoforigin:,,,/Images/1.png" Stretch="Uniform" Height="445" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> but even that just threw up an error. I hate to keep asking, but i am trying! im just not great with this code. Edited November 1, 2018 by Super_Paulie Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 13 minutes ago, Super_Paulie said: <Image x:Name="defaultMarq" Source="pack://siteoforigin:,,,/Images/defaultMarq.jpg" Panel.ZIndex="0" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="440" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="440" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> As long as you have an image named "defaultMarq.jpg" in a folder located at "Launchbox/Images/" this should work fine. What error did it throw? Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 hi Retro, this is what happens. Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 can you possibly send me your xaml,or just copy the whole thing here or in a message to me,so I can have a look at it? Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 of course, see below for my current file: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Wpf.Transitions;assembly=Unbroken.LaunchBox.Wpf" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburnproject.org" mc:Ignorable="d" d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource UserControlStyle}"> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Image x:Name="defaultMarq" Source="pack://siteoforigin:,,,/Images/defaultMarq.png" Panel.ZIndex="0" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="465" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="465" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> </Grid> </UserControl> Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Wpf.Transitions;assembly=Unbroken.LaunchBox.Wpf" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburnproject.org" mc:Ignorable="d" d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource UserControlStyle}"> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Image Source="pack://siteoforigin:,,,/Images/defaultMarq.png" Panel.ZIndex="0" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="465" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="465" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> </Grid> </UserControl> Ok...is your default a jpg or a png?...I am seeing conflicting info between your posts Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 sorry, i was trying both to see if that made a difference! let me try this code now. Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 hmm, the same thing im afraid, it doesnt seem to like the location of the defaultMarq image or something, it just shows the marquee(or clear logo) again as the zlayer 0. Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 (edited) Ok...I know it looks the same...but,try this one...short of this,I have no idea what is going on here... <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Wpf.Transitions;assembly=Unbroken.LaunchBox.Wpf" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburnproject.org" mc:Ignorable="d" d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource UserControlStyle}"> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Image Source="pack://siteoforigin:,,,/Images/defaultMarq.png" Panel.ZIndex="0" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Stretch="Uniform" Height="465" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Stretch="Uniform" Height="465" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> </Grid> </UserControl> Edited November 1, 2018 by RetroHumanoid Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 (edited) hi Retro. Is that just the same code? i cant see a change! ha ha! Also no, it behalves as prefer, the blurred image is the marquee or the clear logo depending on what ROM and the "defaultMarq" file is ignored. Funny old one this but thanks loads for your efforts. Edited November 1, 2018 by Super_Paulie Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 8 minutes ago, Super_Paulie said: hi Retro. Is that just the same code? i cant see a change! ha ha! Just got rid of some white spaces...but,this next one is different...try it and tell me how it goes... <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Wpf.Transitions;assembly=Unbroken.LaunchBox.Wpf" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburnproject.org" mc:Ignorable="d" d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource UserControlStyle}"> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Grid.ColumnDefinitions> <ColumnDefinition Width="640*" /> <ColumnDefinition Width="640*" /> <ColumnDefinition Width="640*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="465*" /> <RowDefinition Height="615*" /> </Grid.RowDefinitions> <Image Source="pack://siteoforigin:,,,/Images/defaultMarq.png" Grid.RowSpan="2" Grid.Row="0" Grid.ColumnSpan="3" Grid.Column="0" Panel.ZIndex="0" Stretch="Fill" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Grid.RowSpan="1" Grid.Row="0" Grid.ColumnSpan="1" Grid.Column="1" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Grid.RowSpan="1" Grid.Row="0" Grid.ColumnSpan="3" Grid.Column="0" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> </Grid> </UserControl> 1 Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 afraid not, exactly the same as before. Maybe this is just not possible, even though it looks like a basic thing! Quote Link to comment Share on other sites More sharing options...
RetroHumanoid Posted November 1, 2018 Share Posted November 1, 2018 Not done yet,lol..try this one....and I suggest,even though this isn't showing the image yet,to stick with the code I am posting instead (the last one I post that works),because it sets up an actual grid for you,which makes it easier to edit and make changes once you know how it works... <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:transitions="clr-namespace:Unbroken.LaunchBox.Wpf.Transitions;assembly=Unbroken.LaunchBox.Wpf" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburnproject.org" mc:Ignorable="d" d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource UserControlStyle}"> <Grid Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="640*" /> <ColumnDefinition Width="640*" /> <ColumnDefinition Width="640*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="465*" /> <RowDefinition Height="615*" /> </Grid.RowDefinitions> <Image Source="pack://siteoforigin:,,,/Images/defaultMarq.png" Grid.RowSpan="2" Grid.Row="0" Grid.ColumnSpan="3" Grid.Column="0" Panel.ZIndex="0" Stretch="Fill" RenderOptions.BitmapScalingMode="LowQuality"><Image.Effect><BlurEffect Radius="99"/></Image.Effect></Image> <Image Source="{Binding Path=SelectedGame.ClearLogoImagePath}" Grid.RowSpan="1" Grid.Row="0" Grid.ColumnSpan="1" Grid.Column="1" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="1"/> <Image Source="{Binding Path=SelectedGame.MarqueeImagePath}" Grid.RowSpan="1" Grid.Row="0" Grid.ColumnSpan="3" Grid.Column="0" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="HighQuality" Panel.ZIndex="2"/> </Grid> </UserControl> Quote Link to comment Share on other sites More sharing options...
Super_Paulie Posted November 1, 2018 Author Share Posted November 1, 2018 (edited) let me try this. Yeah i wanted to use the grid, but i couldnt find a starting guide on it so it was a bit of a steep learning curve for me with that one and i was able to acheive the positional results i needed without them. But yeah, i take your advice on that one. Let me try this code. No joy, still shows the blurred image of the marquee/clear logo. Edited November 1, 2018 by Super_Paulie 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.