Addition in a custom theme - Lacro59/playnite-gameactivity-plugin GitHub Wiki
You can see a example with https://github.com/Lacro59/playnite-defaultextend-theme.
Differents resources disponible with PluginSettings
The SourceName for the plugin is GameActivity
| CustomOption | Type | Default | Description |
|---|---|---|---|
| EnableIntegrationButton | bool | false | Parameters to display or not the plugin button. |
| EnableIntegrationButtonDetails | bool | false | Parameters to display or not more infos in the plugin button. |
| EnableIntegrationChartTime | bool | false | Settings to display or not the chart with times session. |
| EnableIntegrationChartLog | bool | false | Settings to display or not the char with logs session. |
| CustomOption | Type | Default | Description |
|---|---|---|---|
| HasData | bool | false | Indicates if the game has data. |
| HasDataLog | bool | false | Indicates if the game has logs data. |
| LastDateSession | string | string.Empty | The date of the last game session. |
| LastDateTimeSession | string | string.Empty | The date & time of the last game session. |
| LastPlaytimeSession | string | string.Empty | The playtime of the last game session. |
| AvgFpsAllSession | int | 0 | Average FPS of all game session. |
| RecentActivity | string | string.Empty | Recent activity (ex: "23.3 hours pas 2 weeks") |
Integration of plugin elements with ContentControl
<StackPanel Visibility="{PluginStatus Plugin=<PluginId>, Status=Installed}">
</StackPanel>
If the item is not enabled in the plugin settings, it is collapsed.
<StackPanel Visibility="{Binding ElementName=<SourceName>_<ElementName>, Path=Visibility}">
</StackPanel>
<ContentControl x:Name="GameActivity_PluginButton" />

<ContentControl x:Name="GameActivity_PluginChartTime" />
Height is managed in plugin settings but you can defined a MinHeight and MaxHeight.
<ContentControl x:Name="GameActivity_PluginChartLog" />
Height is managed in plugin settings but you can defined a MinHeight and MaxHeight.
<Button Name="PART_CustomGameActivityButton">your custom template here</Button>


