Skip to content

Commit

Permalink
Added: support for panel of VNDB Nexus extension
Browse files Browse the repository at this point in the history
  • Loading branch information
darklinkpower committed May 28, 2024
1 parent e7cf550 commit 1b6cd05
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 20 deletions.
17 changes: 9 additions & 8 deletions source/Constants.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
<sys:Int32 x:Key="GridViewSectionOrderVideo">1</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderNotes">2</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderDescription">3</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderSuccessStory">4</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderHowLongToBeat">5</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderScreenshotsVisualizer">6</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderGameActivity">7</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderReviewViewer">8</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderNewsViewer">9</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderCheckDlc">10</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderGameRelations">11</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderVndb">4</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderSuccessStory">5</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderHowLongToBeat">6</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderScreenshotsVisualizer">7</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderGameActivity">8</sys:Int32>
<sys:Int32 x:Key="GridViewSectionOrderReviewViewer">9</sys:Int32>
<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: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="VNDBPanel" Style="{DynamicResource PluginStackpanelVisibility}"
Visibility="{PluginSettings Plugin=VNDBNexus, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
<Label Content="{DynamicResource LOCSuccessStoryAchievements}" Style="{DynamicResource FeedSectionLabel}"/>
<Grid>
<Border Style="{DynamicResource OutlineBorderSidePanelsBorder}" />
<Border Style="{DynamicResource OutlineBorderSidePanels}" />
<Border Padding="10" >
<StackPanel>
<ContentControl x:Name="VNDBNexus_VndbVisualNovelViewControl" />
</StackPanel>
</Border>
</Grid>
</StackPanel>

<StackPanel Name="ScreenshotsVisualizerPanel" Style="{DynamicResource PluginStackpanelVisibility}"
Visibility="{PluginSettings Plugin=ScreenshotsVisualizer, Path=HasData, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}">
<Label Content="{DynamicResource LOCSsvTitle}" Style="{DynamicResource FeedSectionLabel}"/>
Expand Down
16 changes: 16 additions & 0 deletions source/Views/GridViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Expander Grid.Row="{DynamicResource GridViewSectionOrderDetails}"
IsExpanded="True"
Expand Down Expand Up @@ -554,6 +555,21 @@
</StackPanel>
</Expander>

<Expander Grid.Row="{DynamicResource GridViewSectionOrderVndb}"
IsExpanded="True"
Visibility="{PluginSettings Plugin=VNDBNexus, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"
Margin="0,0,5,0">
<Expander.Header>
<TextBlock Text="VNDB" 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="VNDBNexus_VndbVisualNovelViewControl" Margin="0,10,20,0" />
</StackPanel>
</Expander>

<!--#region SuccessStory-->
<Expander Grid.Row="{DynamicResource GridViewSectionOrderSuccessStory}"
IsExpanded="True"
Expand Down
25 changes: 13 additions & 12 deletions source/thememodifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ Constants:
- GridViewDisplayGameNameIfLogoVisible: 'Display game name if logo is visible'
- GridViewShowHltbDataGrid: 'Show HowLongToBeat data grid (Requires HowLongToBeat extension)'
- "Grid View Details sections order"
- GridViewSectionOrderDetails(0,12): 'Game Details'
- GridViewSectionOrderVideo(0,12): 'ExtraMetadata extension video'
- GridViewSectionOrderNotes(0,12): 'Game Notes'
- GridViewSectionOrderDescription(0,12): 'Game Description'
- GridViewSectionOrderSuccessStory(0,12): 'SuccessStory extension'
- GridViewSectionOrderHowLongToBeat(0,12): 'HowLongToBeat extension'
- GridViewSectionOrderScreenshotsVisualizer(0,12): 'ScreenshotsVisualizer extension'
- GridViewSectionOrderGameActivity(0,12): 'GameActivity extension'
- GridViewSectionOrderReviewViewer(0,12): 'ReviewViewer extension'
- GridViewSectionOrderNewsViewer(0,12): 'NewsViewer extension'
- GridViewSectionOrderCheckDlc(0,12): 'CheckDlc extension'
- GridViewSectionOrderGameRelations(0,12): 'Game Relations extension'
- GridViewSectionOrderDetails(0,14): 'Game Details'
- GridViewSectionOrderVideo(0,14): 'ExtraMetadata extension video'
- GridViewSectionOrderNotes(0,14): 'Game Notes'
- GridViewSectionOrderDescription(0,14): 'Game Description'
- GridViewSectionOrderVndb(0,14): 'VNDB Nexus extension'
- GridViewSectionOrderSuccessStory(0,14): 'SuccessStory extension'
- GridViewSectionOrderHowLongToBeat(0,14): 'HowLongToBeat extension'
- GridViewSectionOrderScreenshotsVisualizer(0,14): 'ScreenshotsVisualizer extension'
- GridViewSectionOrderGameActivity(0,14): 'GameActivity extension'
- GridViewSectionOrderReviewViewer(0,14): 'ReviewViewer extension'
- GridViewSectionOrderNewsViewer(0,14): 'NewsViewer extension'
- GridViewSectionOrderCheckDlc(0,14): 'CheckDlc extension'
- GridViewSectionOrderGameRelations(0,14): 'Game Relations extension'
- "Grid View Covers"
- GridViewCoverZoomOnHover: 'Zoom when hovered'
- GridViewCoverSubtitleVisibility: 'Visibility of time played under game covers'
Expand Down

0 comments on commit 1b6cd05

Please sign in to comment.