@
djvj
Okay, since we are going to be modifying the Estuary skin files, you first need to create a duplicate copy of the Estuary skin for your own needs and call it something else.
I'm going to assume you are on Windows, which is the same as me. You first need to go to the C: drive on your PC, then navigate to program files, then click on the Kodi folder, then the addons folder. Once you have clicked the addons folder, you find a folder called 'skin.estuary' (near the bottom). You need to copy, then paste this entire folder to following new location on your PC:-
C:\Users\Your PC Name\AppData\Roaming\Kodi\addons
Once this has been done, you then need to rename the 'skin.estuary' folder you copied to 'skin.my.estuary'.
Once this has been done, you need to click on this folder and open the addon.xml file using a text editor (something like Notpad++)
You then need to change the 'id' right at the top of page to read 'id="skin.my.estuary"
You also need to change 'name' on the same line to 'name="MyEstuary"
Once done, click on file, then save at the top of the screen.
This has basically created a duplicate copy of the default Estuary skin, but called 'MyEstuary'
You can test it works by opening Kodi then navigating to:-
System>>>Add-Ons>>>My Add-ons>>>Look and Feel>>>Skin
You should see the MyEstuary skin listed, but with a little 'X' next to it. Click on the skin, then click 'enable'
This will make this skin your current skin.
Okay, now exit Kodi and navigate back to the new skin folder you created earlier and copied to C:\Users\Your PC Name\AppData\Roaming\Kodi\addons
Click on the skin.my.estuary folder, then the xml folder.
Open the includes.xml file using your text editor.
Navigate down the file until you reach the line that says <include name="MediaFlags"> (On my copy of Estuary this is line 347)
You will then see this piece of code just underneath:-
xml:
<control type="group">
<top>10</top>
<width>200</width>
<visible>!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Premiered)</visible>
<include content="InfoFlag">
<param name="icon" value="lists/year.png" />
<param name="label" value="$INFO[$PARAM[infolabel_prefix]ListItem.Premiered]" />
</include>
</control>
Directly underneath the last line of this code (</control>) copy/paste this code:-
xml:
<control type="group">
<width>115</width>
<visible>!String.IsEmpty($PARAM[infolabel_prefix]ListItem.MPAA)</visible>
<control type="label">
<width>115</width>
<height>60</height>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[$PARAM[infolabel_prefix]ListItem.MPAA]</label>
<font>font_flag</font>
</control>
<include content="MediaFlag">
<param name="texture" value="flags/flag.png" />
</include>
</control>
Then click file>>>>save at the top of the text edit page.
When you re-open Kodi, the MPAA ratings will now show as a new media flag on your own copy of the Estuary skin (MyEstuary).
I know it's a fair amount of effort to achieve this, which you may not feel completely comfortable doing.
Just to let you know, I'm also working on a skin mod of Estuary which I hope to release shortly that has 3 additional views, that all include the MPAA ratings on them. One of these new views also has button for 'Play Trailer' as well:-
Hope the above is of some help.
Cheers