Jump to content
LaunchBox Community Forums

If no video, show screenshot doesn't work


thewhite

Recommended Posts

Hi,

I have a problem with my custom theme. In the image below, it's a video in-game. But if the game don't have a video, it doesn't show a image. I think that my problem is this line;
<transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding BackgroundView}" Grid.Row="1" IsContentVideo="true" VerticalAlignment="Top"/>

If i change BackgroundView to ImageVideoView, the video doesn't show anymore and when i get a game with no video, i see the in-game image. And this image replace all game with a video.

I have another problem, maybe it's related. I must use SelectedGame instead of ActiveGame, for example <Binding Path="SelectedGame.CommunityStarRating" />. I didn't get any issue with SelectedGame, but in the doc it suggests using ActiveGame...

pYX3ySY.jpg

 

Spoiler

<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.Windows.Transitions;assembly=Unbroken.LaunchBox.Windows"
             mc:Ignorable="d"
             d:DesignHeight="562"
             d:DesignWidth="1000"
             HorizontalAlignment="Stretch"
             VerticalAlignment="Stretch"
             FocusVisualStyle="{x:Null}"
             BorderThickness="0"
             Margin="0"
             Padding="0"
             Background="#000">
    <Canvas Name="Canvas">
        <!--<transitions:TransitionPresenter TransitionSelector="{Binding BackgroundTransitionSelector}" Content="{Binding BackgroundView}" Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}" IsContentVideo="true" />-->
        <Grid Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}">
            <Grid.Background>
                <ImageBrush Stretch="Fill" ImageSource="pack://siteoforigin:,,,/Themes/clean/Images/background/background_list_games.jpg" AlignmentY="Top" AlignmentX="Center"/>
            </Grid.Background>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="26*" />
                <ColumnDefinition Width="71*" />
                <ColumnDefinition Width="3*" />
            </Grid.ColumnDefinitions>
            <transitions:TransitionPresenter Grid.Column="0" TransitionSelector="{Binding ListTransitionSelector}" Content="{Binding ListView}" />
            <Grid Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="4*" />
                    <ColumnDefinition Width="96*" />
                </Grid.ColumnDefinitions>
                <Grid Grid.Column="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60*" />
                        <ColumnDefinition Width="5*" />
                        <ColumnDefinition Width="35*" />
                    </Grid.ColumnDefinitions>
                    <Grid Grid.Column="0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="4.2*" />
                            <RowDefinition Height="59.3*" />
                            <RowDefinition Height="5.4*" />
                            <RowDefinition Height="45.3*" />
                            <RowDefinition Height="4.2*" />
                        </Grid.RowDefinitions>
                        <transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding BackgroundView}" Grid.Row="1" IsContentVideo="true" VerticalAlignment="Top"/>
                            <transitions:TransitionPresenter Grid.Row="3" TransitionSelector="{Binding GameDetailsTransitionSelector}" Content="{Binding GameDetailsView}" />




                    </Grid>
                    <Grid Grid.Column="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="4.2*" />
                            <RowDefinition Height="45.8*" />
                            <RowDefinition Height="10*" />
                            <RowDefinition Height="35.8*" />
                            <RowDefinition Height="4.2*" />
                        </Grid.RowDefinitions>
                    <Image Grid.Row="1" Margin="0" Source="{Binding Path=ActiveGame.FrontImagePath}" VerticalAlignment="Top" />
                    <Image Grid.Row="3" Source="{Binding Path=SelectedGame.ClearLogoImagePath}" VerticalAlignment="Top" />

                        
                    </Grid>
                </Grid>
            </Grid>
        </Grid>
    </Canvas>
</UserControl>

 

Thanks.

Edited by thewhite
Link to comment
Share on other sites

I had a similar issue on my custom theme after 11 beta 1 none of my videos showed and I had to turn off all the video settings in BigBox, below is the code I use.

<transitions:TransitionPresenter TransitionSelector="{Binding ImageVideoTransitionSelector}" Content="{Binding ImageVideoView}" IsContentVideo="True" />

image.thumb.png.ee0ce1d3451f16773f5006240e6f042a.png

Edited by wallmachine
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...