Jump to content
LaunchBox Community Forums

Default marquee for ROMS that dont have an image?


Super_Paulie

Recommended Posts

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.

Link to comment
Share on other sites

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 by Super_Paulie
  • Like 1
Link to comment
Share on other sites

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.

Capture1.PNG

Edited by Super_Paulie
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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>
 

Link to comment
Share on other sites

<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

Link to comment
Share on other sites

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 by RetroHumanoid
Link to comment
Share on other sites

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 by Super_Paulie
Link to comment
Share on other sites

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>

  • Like 1
Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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 by Super_Paulie
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...