Mod Estuary MOD V2 - KODI 18 (UPDATED 17/01/19)
(2019-08-05, 21:42)julianb Wrote: Is it possible to add icons like this for ratings: Image and is it also possible to change the standard white square media icons?

Would like some options for these icons: Image Have anyone here change or done anything like this?

A Noob's Guide to other Noobs
I am a total noob in skinning and programming but I managed to add MPAA rating flag. See PG-13 below. So yes its is possible, not easy but possible.Image
About replacing the Flags with other options. This is also possible. You just have to replace the code that displays a particular Flag with one of your choice. For this skin, and most likely many other skins the codes for flags are in the "Includes.XML" file. This file is in the xml folder, the xml folder is located in the Addon folder (the folder is skin.estuary.modv2). Where the KODI addons folder is located depends on your system, you check with KODI wiki if you are not sure.
What code you need.
Code:
<texture> some code here <texture/>
<visible> some code here </visible>
The code that goes between these two elements are the main code that display your flags. You can find this code in other skins that have what you need. In your screenshot,the code displaying the ratings icons can be found in the includes.xml of that skin whose screenshot you took.
Example:
Code:

<include content="MediaFlag">
                    <param name="texture" value="$PARAM[audiocodec_var]" />
                    <param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioCodec)" />
                    <param name="visible2" value="!Skin.HasSetting(show_mediaaudiocodecflag)" />
                    <param name="top" value="5" />
</include>

Explanation:
Our <texture> code is contained here <param name="texture" value="$PARAM[audiocodec_var]" /> this code says fetch the icon for the AudioCodec of the video, AAC in my case, Dolby digital in your case.
Our <visible> code is contained here <param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioCodec)" /> this code says display the icon if the AudioCodec is not blank. If your video has no codec (blank), this code avoids the skin showing an empty rectangle where the icon is supposed to be.
The codes inside <texture> and <visible> are the most important.
Now this <param name="visible2" value="!Skin.HasSetting(show_mediaaudiocodecflag)" /> says, show the icon if the user has changed the settings to show MediaAudioCodecFlag, if not, do not show the icon.

Where to put the code:
Once you find the code you need, it is time to find where the code goes in Estuary MOD V2.
To avoid your skin from breaking, try to maintain the original design as much as possible. As you can see, my MPAA rating flag/icon fits almost perfectly with other flags. This is because I maintained the design.
All Media Flag Icons in Estuary MOD V2 go under the <include name="MediaFlags"> this starts on line 725 (use Notepad++ or other text editor with line numbering).
The individual flags, starting with the studio logo begin just below <control type="group"> this is on line 835. 
You can replace any of the icons and insert your own, by editing the code here. To replace the AudioCodec icon for example, replace this code with the code you extracted from another skin. Paste only the two main codes first (texture and visible) and see how that goes. In most cases, you wont need the rest of the code such as width, height etc. The size of the icon is already taken care of by the <control type="group"> . If the icons do not show as expected, you can add the rest of the code that came with it.
To add a new icon, paste its code within the <control type="group"> 
Code:
    
<control type="group"> ​​​​​​
        to maintain the design
        your texture and visible codes goes anywhere here. 
        Before other icons, after other icons or between them
</control>
If Addon is required:
If the value under <visible> requires an addon, install that addon first. You will know an addon is required if you see the code has an addon name in it.
something like "HasAddon..."then goes ahead to give the addon name. In the example below Studio Icons - Coloured is required. The code may sometimes not say "HasAddon" but the addon name must be mentioned if its required.

Code:
<param name="visible" value="String.IsEqual(Skin.String(studiologos.path),resource://resource.images.studios.coloured/) + System.HasAddon(resource.images.studios.coloured)" />

Disclaimer!
I am a noob in this. My guide my be entirely wrong or misleading. I am just trying to help because it is important we help each other especially now that @Guilouz is unavailable (We really appreciate his work, we hope he will be back soon to update this amazing skin). This is the little knowledge I have gathered from editing this skin.
Life is short, I don't have time for squabbles. Lets be friends, lets enjoy Kodi :)


Messages In This Thread
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-12, 13:57
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-12, 14:46
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-13, 17:58
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-14, 00:50
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-14, 00:50
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-14, 02:11
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-14, 06:31
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-14, 16:15
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-14, 22:13
Estuary MOD V2 (UPDATED 12/02/17) - by iMak - 2017-02-15, 17:53
EPG - by Repoman - 2017-04-29, 20:28
Quit and Search - by terpsarlington - 2017-11-18, 03:35
RE: Quit and Search - by Guilouz - 2017-11-18, 03:41
RE: Quit and Search - by terpsarlington - 2017-11-18, 06:38
Genres Widget - by terpsarlington - 2017-11-19, 05:22
RE: Genres Widget - by Guilouz - 2017-11-19, 15:23
RE: Genres Widget - by terpsarlington - 2017-11-20, 00:21
Where are the API keys stored? - by mozomo - 2017-11-19, 17:36
Ratings - by terpsarlington - 2017-11-28, 00:08
RE: Ratings - by junias - 2017-11-28, 00:14
RE: Ratings - by Guilouz - 2017-11-28, 01:31
RE: Ratings - by terpsarlington - 2017-11-28, 03:25
RE: Ratings - by Guilouz - 2017-11-28, 04:24
Question on Whitelist option - by kaybird - 2018-06-15, 20:33
RE: Question on Whitelist option - by Guilouz - 2018-06-16, 02:08
Random titles? - by kaybird - 2018-06-28, 01:54
RE: Random titles? - by Guilouz - 2018-07-15, 10:48
Skin Helper Service error - by Picard - 2018-06-28, 04:51
RE: Skin Helper Service error - by redglory - 2018-06-28, 15:20
RE: Skin Helper Service error - by Guilouz - 2018-07-15, 10:49
RE: Estuary MOD V2 - KODI 18 (UPDATED 17/01/19) - by TimeZone - 2019-08-06, 15:44
Add main menu item? - by revhead - 2021-04-28, 12:33
RE: Add main menu item? - by Mahava - 2021-04-29, 01:17
Kodi 18 script.shortcuts issue - by Shayno - 2018-09-19, 01:31
empty Homescreen - by menou - 2021-07-22, 15:19
RE: empty Homescreen - by _BJ1 - 2021-07-25, 21:23
Logout Mark Read Team Forum Stats Members Help
Estuary MOD V2 - KODI 18 (UPDATED 17/01/19)17