Addition in a custom theme - Lacro59/playnite-successstory-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 SuccessStory
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. |
EnableIntegrationViewItem | bool | false | Parameters to display or not a simple item games list. |
EnableIntegrationProgressBar | bool | false | Parameters to display or not the plugin progress bar. |
EnableIntegrationCompact | bool | false | Parameters to display or not the plugin list compact. |
EnableIntegrationCompactLocked | bool | false | Parameters to display or not the plugin list compact with unlocked. |
EnableIntegrationCompactUnlocked | bool | false | Parameters to display or not the plugin list compact with locked. |
EnableIntegrationChart | bool | false | Parameters to display or not the plugin chart with unlocked. |
EnableIntegrationUserStats | bool | false | Parameters to display or not the plugin list with user game stats. |
EnableIntegrationList | bool | false | Parameters to display or not the plugin list with all achievements. |
UseUltraRare | bool | false | Parameters to display or not the ultra rare achievements. |
CustomOption | Type | Default | Description |
---|---|---|---|
HasData | bool | false | Indicates if the game has data. |
Is100Percent | bool | false | Indicates if all achievements are unlocked. |
Common | AchRaretyStats | empty | details |
NoCommon | AchRaretyStats | empty | details |
Rare | AchRaretyStats | empty | details |
UltraRare | AchRaretyStats | empty | details |
Unlocked | int | 0 | Count of unlocked achievements. |
Locked | int | 0 | Count of locked achievements. |
Total | int | 0 | Count total of achievements. |
TotalGamerScore | int | 0 | Count total of gamerscore. |
Percent | int | 0 | Percent of unlocked. |
EstimateTimeToUnlock | string | string.Empty | Estimate time to full unlock. |
ListAchievements | List | List.Empty | details |
ListAchUnlockDateAsc | List | List.Empty | details |
ListAchUnlockDateDesc | List | List.Empty | details |
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="SuccessStory_PluginViewItem" />
<ContentControl x:Name="SuccessStory_PluginButton" />
<ContentControl x:Name="SuccessStory_PluginChart" />
Height is managed in plugin settings but you can defined a MinHeight
and MaxHeight
.
<ContentControl x:Name="SuccessStory_PluginList" />
Height is managed in plugin settings but you can defined a MinHeight
and MaxHeight
.
<ContentControl x:Name="SuccessStory_PluginCompactList" />
Height is managed in plugin settings but you can defined a MinHeight
and MaxHeight
.
ProgressBar with your achievement progression (supporting the different options in the plugin settings)
<ContentControl x:Name="SuccessStory_PluginProgressBar" />
<ContentControl x:Name="SuccessStory_PluginCompactUnlocked" />
Height is managed in plugin settings but you can defined a MinHeight
and MaxHeight
.
<ContentControl x:Name="SuccessStory_PluginCompactLocked" />
Height is managed in plugin settings but you can defined a MinHeight
and MaxHeight
.
<ContentControl x:Name="SuccessStory_PluginUserStats" />
Height is managed in plugin settings but you can defined a MinHeight
and MaxHeight
.
<Button Name="PART_CustomScButton">
<ContentControl x:Name="SuccessStory_PluginViewItem" />
</Button>