Jump to content
LaunchBox Community Forums

Whatscheiser

Members
  • Posts

    63
  • Joined

  • Last visited

Community Answers

  1. Whatscheiser's post in 13.18 Release changes game view background from fanart to screenshot gameplay was marked as the answer   
    Triple posting for the solution.
    When opening the LaunchBox application, on launch, it changes an entry in "LaunchBox\LBThemes\Default\Views\GameDetailsView.xaml"
    In my old version of the software that displays the images correctly this entry looks like the following.
    (13.12)
    <!-- TOP BORDER IMAGE & ALL FALLBACKS --> <Grid> <Grid.RowDefinitions> <RowDefinition MinHeight="250" MaxHeight="450" Height="{Binding Converter={StaticResource Multiply}, ConverterParameter='0.5', ElementName=UserControl, Path=ActualWidth}" /> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid> <Grid.OpacityMask> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <GradientStop Color="#BB000000" Offset="0.0"/> <GradientStop Color="#BB000000" Offset="0.7"/> <GradientStop Color="#00000000" Offset="1.0"/> </LinearGradientBrush> </Grid.OpacityMask> <Grid RenderTransformOrigin="0.5,0.5" RenderOptions.CachingHint="Cache"> <Grid.Style> <Style TargetType="Grid"> <Setter Property="RenderTransform"> <Setter.Value> <ScaleTransform ScaleX="1.2" ScaleY="1.2"/> </Setter.Value> </Setter> <Setter Property="Opacity" Value="0"/> <Style.Triggers> <EventTrigger RoutedEvent="Loaded"> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:1" BeginTime="0:0:0.2" To="1" /> <DoubleAnimation Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleX)" BeginTime="0:0:0.2" Duration="0:0:1" To="1.0"> <DoubleAnimation.EasingFunction> <CubicEase EasingMode="EaseOut"/> </DoubleAnimation.EasingFunction> </DoubleAnimation> <DoubleAnimation Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleY)" BeginTime="0:0:0.2" Duration="0:0:1" To="1.0"> <DoubleAnimation.EasingFunction> <CubicEase EasingMode="EaseOut"/> </DoubleAnimation.EasingFunction> </DoubleAnimation> </Storyboard> </BeginStoryboard> </EventTrigger> </Style.Triggers> </Style> </Grid.Style> <coverFlow:FlowImage x:Name="Background" DataContext="{Binding Game}" ImageType="Backgrounds" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> </coverFlow:FlowImage> <coverFlow:FlowImage x:Name="ScreenshotGameplay" DataContext="{Binding Game}" ImageType="Screenshot - Gameplay" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> <coverFlow:FlowImage.Style> <Style TargetType="coverFlow:FlowImage"> <Setter Property="LoadImage" Value="False"/> <Style.Triggers> <DataTrigger Binding="{Binding ElementName=Background, Path=HasImage}" Value="False"> <Setter Property="LoadImage" Value="True"/> </DataTrigger> </Style.Triggers> </Style> </coverFlow:FlowImage.Style> </coverFlow:FlowImage> <coverFlow:FlowImage x:Name="OriginScreenshot" DataContext="{Binding Game}" ImageType="Origin Screenshot" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> <coverFlow:FlowImage.Style> <Style TargetType="coverFlow:FlowImage"> <Setter Property="LoadImage" Value="False"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding ElementName=Background, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=ScreenshotGameplay, Path=HasImage}" Value="False"/> </MultiDataTrigger.Conditions> <Setter Property="LoadImage" Value="True"/> </MultiDataTrigger> </Style.Triggers> </Style> </coverFlow:FlowImage.Style> </coverFlow:FlowImage> <coverFlow:FlowImage x:Name="AmazonScreenshot" DataContext="{Binding Game}" ImageType="Amazon Screenshot" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> <coverFlow:FlowImage.Style> <Style TargetType="coverFlow:FlowImage"> <Setter Property="LoadImage" Value="False"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding ElementName=Background, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=ScreenshotGameplay, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=OriginScreenshot, Path=HasImage}" Value="False"/> </MultiDataTrigger.Conditions> <Setter Property="LoadImage" Value="True"/> </MultiDataTrigger> </Style.Triggers> </Style> </coverFlow:FlowImage.Style> </coverFlow:FlowImage> <coverFlow:FlowImage x:Name="GOGScreenshot" DataContext="{Binding Game}" ImageType="GOG Screenshot" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> <coverFlow:FlowImage.Style> <Style TargetType="coverFlow:FlowImage"> <Setter Property="LoadImage" Value="False"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding ElementName=Background, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=ScreenshotGameplay, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=OriginScreenshot, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=AmazonScreenshot, Path=HasImage}" Value="False"/> </MultiDataTrigger.Conditions> <Setter Property="LoadImage" Value="True"/> </MultiDataTrigger> </Style.Triggers> </Style> </coverFlow:FlowImage.Style> </coverFlow:FlowImage> <coverFlow:FlowImage x:Name="EpicGamesScreenshot" DataContext="{Binding Game}" ImageType="Epic Games Screenshot" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> <coverFlow:FlowImage.Style> <Style TargetType="coverFlow:FlowImage"> <Setter Property="LoadImage" Value="False"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding ElementName=Background, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=ScreenshotGameplay, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=OriginScreenshot, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=AmazonScreenshot, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=GOGScreenshot, Path=HasImage}" Value="False"/> </MultiDataTrigger.Conditions> <Setter Property="LoadImage" Value="True"/> </MultiDataTrigger> </Style.Triggers> </Style> </coverFlow:FlowImage.Style> </coverFlow:FlowImage> <coverFlow:FlowImage x:Name="SteamScreenshot" DataContext="{Binding Game}" ImageType="Steam Screenshot" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> <coverFlow:FlowImage.Style> <Style TargetType="coverFlow:FlowImage"> <Setter Property="LoadImage" Value="False"/> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding ElementName=Background, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=ScreenshotGameplay, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=OriginScreenshot, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=AmazonScreenshot, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=GOGScreenshot, Path=HasImage}" Value="False"/> <Condition Binding="{Binding ElementName=EpicGamesScreenshot, Path=HasImage}" Value="False"/> </MultiDataTrigger.Conditions> <Setter Property="LoadImage" Value="True"/> </MultiDataTrigger> </Style.Triggers> </Style> </coverFlow:FlowImage.Style> </coverFlow:FlowImage> </Grid> </Grid> However in 13.18 even if I have the the xaml file from 13.12 installed its instantly changed on launch to this...
    <!-- TOP BORDER IMAGE & ALL FALLBACKS --> <Grid> <Grid.RowDefinitions> <RowDefinition MinHeight="250" MaxHeight="450" Height="{Binding Converter={StaticResource Multiply}, ConverterParameter='0.5', ElementName=UserControl, Path=ActualWidth}" /> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid> <Grid.OpacityMask> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <GradientStop Color="#BB000000" Offset="0.0"/> <GradientStop Color="#BB000000" Offset="0.7"/> <GradientStop Color="#00000000" Offset="1.0"/> </LinearGradientBrush> </Grid.OpacityMask> <Grid RenderTransformOrigin="0.5,0.5" RenderOptions.CachingHint="Cache"> <Grid.Style> <Style TargetType="Grid"> <Setter Property="RenderTransform"> <Setter.Value> <ScaleTransform ScaleX="1.2" ScaleY="1.2"/> </Setter.Value> </Setter> <Setter Property="Opacity" Value="0"/> <Style.Triggers> <EventTrigger RoutedEvent="Loaded"> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:1" BeginTime="0:0:0.2" To="1" /> <DoubleAnimation Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleX)" BeginTime="0:0:0.2" Duration="0:0:1" To="1.0"> <DoubleAnimation.EasingFunction> <CubicEase EasingMode="EaseOut"/> </DoubleAnimation.EasingFunction> </DoubleAnimation> <DoubleAnimation Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleY)" BeginTime="0:0:0.2" Duration="0:0:1" To="1.0"> <DoubleAnimation.EasingFunction> <CubicEase EasingMode="EaseOut"/> </DoubleAnimation.EasingFunction> </DoubleAnimation> </Storyboard> </BeginStoryboard> </EventTrigger> </Style.Triggers> </Style> </Grid.Style> <coverFlow:FlowImage x:Name="Background" DataContext="{Binding Game}" ImageType="Steam Screenshot; Epic Games Screenshot; GOG Screenshot; Amazon Screenshot; Origin Screenshot; Screenshot - Gameplay; Backgrounds" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" RenderOptions.CachingHint="Cache"> <coverFlow:FlowImage.CacheMode> <BitmapCache/> </coverFlow:FlowImage.CacheMode> </coverFlow:FlowImage> </Grid> </Grid> Which to my uneducated eye looks like its probably faster to execute because its shorter, but it seems to have the side effect of borking my background images.
     
    To solve the issue in my build for now I just made a new skin folder titled 13.12 and copied the contents of the default skin from that older build into it. I applied it as the active skin and launchbox no longer messes with it when I open the software. My background images display correctly within gameview.
×
×
  • Create New...