Skip to content

Addition in a custom theme

Lacro59 edited this page Sep 4, 2024 · 5 revisions

You can see a example with https://github.com/Lacro59/playnite-defaultextend-theme.

Differents resources disponible with PluginSettings

The SourceName for the plugin is CheckDlc

Plugin settings

CustomOption Type Default Description
EnableIntegrationButton bool true Parameters to display or not the plugin button.
EnableIntegrationListDlcAll bool true Settings to display or not list with all DLC.
EnableIntegrationListDlcOwned bool true Settings to display or not list with only owned DLC.
EnableIntegrationListDlcNotOwned bool true Settings to display or not list with only not owned DLC.

Plugin data for game selected

CustomOption Type Default Description
HasData bool false Indicates if the game has data.
ListDlcs List List.Empty details

Integration of plugin elements with ContentControl

Visibility

Visibility according to the presence of the plugin

<StackPanel Visibility="{PluginStatus Plugin=<PluginId>, Status=Installed}">
</StackPanel>

Visibility depending the element visibility parameter in plugin settings

If the item is not enabled in the plugin settings, it is collapsed.

Visibility according to the visibility of the element

<StackPanel Visibility="{Binding ElementName=<SourceName>_<ElementName>, Path=Visibility}">
</StackPanel>

Plugin elements

Button (supporting the different options in the plugin settings)

<ContentControl x:Name="CheckDlc_PluginButton" />

List with all DLC

<ContentControl x:Name="CheckDlc_PluginListDlcAll" Height="300" />

List with only owned DLC

<ContentControl x:Name="CheckDlc_PluginListDlcOwned" Height="300" />

List with only not owned DLC

<ContentControl x:Name="CheckDlc_PluginListDlcNotOwned" Height="300" />