2021-08-13, 07:34
(2021-08-12, 21:35)tillaz87 Wrote: I have added this to the variables.xml that is included in the layibird skin.
xml:
<variable name="Custom_Age_Rating_AEL">
<value condition="String.IsEqual($INFO[ListItem.Property(esrb)],RP (Rating Pending))">[COLOR white]?[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb),EC (Early Childhood))">[COLOR green]3+[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb)],E (Everyone))">[COLOR green]7+[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb),E10+ (Everyone 10+))">[COLOR green]10+[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb),T (Teen))">[COLOR orange]12+[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb)],M (Mature))">[COLOR orange]16+[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb),A0 (Adults Only))">[COLOR red]18+[/COLOR]</value>
</variable>]
But what do I add to my control for this to work? I've tried a few things without luck after reading the Kodi skinning wiki.
Here is my control for the esrb what do I add to make this work?
xml:
<control type="label">
<left>1000</left>
<top>560</top>
<width>720</width>
<height>55</height>
<textcolor>FFFFFFFF</textcolor>
<font>font16</font>
<label>$INFO[ListItem.Year, • Released ,]$INFO[ListItem.Property(nplayers), • , Player]$INFO[ListItem.Property(esrb), • Age ,] •</label>
<scroll>false</scroll>
</control>
You need to call the variable with
$VAR[Custom_Age_Rating_AEL]
and not the infolabelxml:
<control type="label">
<left>1000</left>
<top>560</top>
<width>720</width>
<height>55</height>
<textcolor>FFFFFFFF</textcolor>
<font>font16</font>
<label>$INFO[ListItem.Year, • Released ,]$INFO[ListItem.Property(nplayers), • , Player]$VAR[Custom_Age_Rating_AEL], • Age ,] •</label>
<scroll>false</scroll>
</control>