Skip to content

Commit

Permalink
Added: Support for Steam Screenshots extension
Browse files Browse the repository at this point in the history
  • Loading branch information
darklinkpower committed May 31, 2024
1 parent 6c75bdb commit a2107c5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/Constants.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<sys:Int32 x:Key="GridViewSectionOrderNewsViewer">10</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderCheckDlc">11</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderGameRelations">12</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderSteamScreenshots">13</sys:Int32>
<sys:Boolean x:Key="GridViewCoverZoomOnHover">True</sys:Boolean>
<sys:Boolean x:Key="ShowNavigationButtons">True</sys:Boolean>
<!--region end-->
Expand Down
14 changes: 14 additions & 0 deletions source/Views/DetailsViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,20 @@
</Grid>
</StackPanel>

<StackPanel Name="SteamScreenshots" Style="{DynamicResource PluginStackpanelVisibility}"
Visibility="{PluginSettings Plugin=SteamScreenshots, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
<Label Content="{DynamicResource LOC_SteamScreenshots_SteamScreenshotsLabel}" Style="{DynamicResource FeedSectionLabel}"/>
<Grid>
<Border Style="{DynamicResource OutlineBorderSidePanelsBorder}" />
<Border Style="{DynamicResource OutlineBorderSidePanels}" />
<Border Padding="10" >
<StackPanel>
<ContentControl x:Name="SteamScreenshots_SteamScreenshotsViewControl" />
</StackPanel>
</Border>
</Grid>
</StackPanel>

<StackPanel Name="VNDBPanel" Style="{DynamicResource PluginStackpanelVisibility}"
Visibility="{PluginSettings Plugin=VNDBNexus, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
<Label Content="{DynamicResource LOCSuccessStoryAchievements}" Style="{DynamicResource FeedSectionLabel}"/>
Expand Down
15 changes: 15 additions & 0 deletions source/Views/GridViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,21 @@
</Expander>

<!--#endregion -->

<Expander Grid.Row="{DynamicResource GridViewSectionOrderSteamScreenshots}"
IsExpanded="True"
Visibility="{PluginSettings Plugin=SteamScreenshots, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"
Margin="0,0,5,0">
<Expander.Header>
<TextBlock Text="{DynamicResource LOC_SteamScreenshots_SteamScreenshotsLabel}" Style="{DynamicResource BaseTextBlockStyle}"
Cursor="Hand"
FontWeight="Medium" FontSize="{DynamicResource FontSizeLarge}" />
</Expander.Header>
<StackPanel Margin="0,0,0,25">
<Separator Background="{DynamicResource HighlightGlyphBrush}" Margin="0,5,0,5"/>
<ContentControl x:Name="SteamScreenshots_SteamScreenshotsViewControl" Margin="0,10,20,0" />
</StackPanel>
</Expander>
</Grid>
</ScrollViewer>
</DockPanel>
Expand Down
1 change: 1 addition & 0 deletions source/thememodifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Constants:
- GridViewSectionOrderNewsViewer(0,14): 'NewsViewer extension'
- GridViewSectionOrderCheckDlc(0,14): 'CheckDlc extension'
- GridViewSectionOrderGameRelations(0,14): 'Game Relations extension'
- GridViewSectionOrderSteamScreenshots(0,14): 'Steam Screenshots extension'
- "Grid View Covers"
- GridViewCoverZoomOnHover: 'Zoom when hovered'
- GridViewCoverSubtitleVisibility: 'Visibility of time played under game covers'
Expand Down

0 comments on commit a2107c5

Please sign in to comment.