Beta Advanced Emulator Launcher - Multi-emulator frontend for Kodi
(2021-08-12, 14:03)Wintermute0110 Wrote:
(2021-08-11, 20:05)tillaz87 Wrote: Any chance you can give me an example how I can render an age image based off the ESRB rather than text string in EAL I'm still learning skining with Kodi basically I'm just looking at the code in other themes.

Or if you could show how I can just display 18+ etc just numeric would be a big help I've googled about and can't really see anything on it.

I've wanting it to show like this below I can edit the nfo files manually but was hoping of a way to scrap it all at once

Image

I am neither an expert on skinning so don't trust on what I say completely.

First you need to check the SKINNING.md file in AEL source code to learn the infolabels AEL creates. From there, AEL creates a property named esrb and the contents are the values of the database field m_esrb, which has a set of default values.

Then, I would create a variable like this example in Estuary AEL

xml:

<variable name="AEL_ESRB_Status_text">
<value condition="String.IsEqual($INFO[ListItem.Property(esrb)],RP (Rating Pending))">[COLOR white]OK[/COLOR]</value>
<value condition="String.IsEqual($INFO[ListItem.Property(esrb),EC (Early Childhood))">[COLOR orange]U ROM[/COLOR]</value>
...
</variable>

Note that in the previous example the variable will return a colored text string, however instead of a text string you can point to an image with an icon.

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>]
Reply


Messages In This Thread
Can You create A Sub Category? - by Wild_Tom - 2020-07-13, 04:43
Crash & Lost my launchers? - by eirrocmh - 2020-11-29, 02:25
RE: Crash & Lost my launchers? - by eirrocmh - 2020-12-19, 00:19
RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - by tillaz87 - 2021-08-12, 21:35
Logout Mark Read Team Forum Stats Members Help
Advanced Emulator Launcher - Multi-emulator frontend for Kodi12