Skip to content

Extra Metadata Loader

Brandon edited this page Sep 17, 2021 · 28 revisions

Full integration tutorial for theme developers is available in the Playnite documentation: https://playnite.link/docs/devel/tutorials/themes/extensionIntegration.html

Integration of custom controls in custom themes

Visibility of elements according to extension installation status

Example:

[...]
<Grid Visibility="{PluginStatus Plugin=ExtraMetadataLoader_705fdbca-e1fc-4004-b839-1d040b8b4429, Status=Installed}">
[...]

It can also be used to return a bool value if used in another property.

Video control

<ContentControl x:Name="ExtraMetadataLoader_VideoLoaderControl" />

Logo control

<ContentControl x:Name="ExtraMetadataLoader_LogoLoaderControl" />

Extension settings

User settings

The source name of the plugin is ExtraMetadataLoader

Setting Type Default Description
EnableVideoPlayer bool true Indicates if the video player has been enabled in settings
AutoPlayVideos bool false Indicates if trailer videos should be automatically played when loaded
RepeatTrailerVideos bool false Indicates if trailer videos should be repeated when they finish playing
StartNoSound bool false Indicates if videos should start playing without sound
UseMicrotrailersDefault bool false Indicates if the microtrailer videos should be played by default
FallbackVideoSource bool true Indicates if other type of video should be played if selected video type is not found
DefaultVolume double 100 Indicates the default volume in percentage
VideoControlsOpacity double 0.3 Indicates the opacity of video controls
VideoControlsOpacityMouseOver double 1.0 Indicates the opacity of video controls when the mouse is hovering the player
VideoControlsVerticalAlignment VerticalAlignment Bottom Indicates the vertical alignment of the video controls inside the video player
EnableLogos bool true Indicates if logos are enabled in settings
LogoMaxWidth double 600 Indicates the maximum width of the logo configured in settings
LogoMaxHeight double 200 Indicates the maximum height of the logo configured in settings
LogoHorizontalAlignment HorizontalAlignment Center Indicates the horizontal alignment of the logo configured in settings
LogoVerticalAlignment VerticalAlignment Center Indicates the vertical alignment of the logo configured in settings

Binding example:

[...]
<DataTrigger Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=EnableVideoPlayer}" Value="True">
    <Setter Property="Background" Value="Green" />`
</DataTrigger>
[...]

Extension data specific of the selected game

Setting Type Default Description
IsLogoAvailable bool false Indicates if logo is available
IsTrailerAvailable bool false Indicates if trailer video is available
IsMicrotrailerAvailable bool false Indicates if Microtrailer video is available
IsAnyVideoAvailable bool false Indicates if trailer or microtrailer video is available

Binding example:

[...]
<DataTrigger Binding="{PluginSettings Plugin=ExtraMetadataLoader, Path=IsLogoAvailable}" Value="True">
    <Setter Property="Background" Value="Green" />`
</DataTrigger>
[...]

Clone this wiki locally