Playnite Forums
Variables (Like kodi) - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Development (https://playnite.link/forum/forum-10.html)
+--- Forum: Themes (https://playnite.link/forum/forum-9.html)
+--- Thread: Variables (Like kodi) (/thread-1033.html)



Variables (Like kodi) - tillaz87 - 12-21-2021

    <variable name="Custom_Age_Rating_AEL">
        <value condition="String.Contains(ListItem.Property(esrb),Rating Pending)">[COLOR white] [/COLOR]</value>
        <value condition="String.Contains(ListItem.Property(esrb),Early Childhood)">[COLOR green] 3[/COLOR]</value>
        <value condition="String.Contains(ListItem.Property(esrb),Everyone)">[COLOR green] 7[/COLOR]</value>
        <value condition="String.Contains(ListItem.Property(esrb),10)">[COLOR green] 10[/COLOR]</value>
        <value condition="String.Contains(ListItem.Property(esrb),Teen)">[COLOR orange] 12[/COLOR]</value>
        <value condition="String.Contains(ListItem.Property(esrb),Mature)">[COLOR red] 18[/COLOR]</value>
        <value condition="String.Contains(ListItem.Property(esrb),Adults Only)">[COLOR red] 18[/COLOR]</value>
    </variable>

Is this possible for metadata in playnite? If so is there a write up how its done in xaml?