Updating WidgetListPoster to overlay rating on Movie Poster ?
#1
Is it possible to mod the WidgetListPoster to have the moving rating or certification overlayed over the movie poster?

Using Estuary I can see home.xml calls the lists for InProgress, Recently Added movies and it appears to use the WidgetListPoster.

Can this widget be customised?  I can't find the source/code for this widget.

Thanks.
Reply
#2
widgets are found in play list they will not work for over lay ratings
 but it is posible to mod the widgets but you would need to do this for each rating

the way i do it is
C:\Users\****\AppData\Roaming\Kodi\userdata\library\video\movies
new folder name Rating
in Rating folder
new file index.xml
xml:
<?xml version='1.0' encoding='UTF-8'?>
<node order="5 B" type="folder" visible="Library.HasContent(Movies)">
 <label>Rating</label>
 <icon></icon>
 </node>
new file G.xml
xml:
<?xml version='1.0' encoding='UTF-8'?> 
<node order="0" type="filter"> 
 <icon>defaultaddonssearch.png</icon>
<label>Rated G</label>
<name>Rated G</name>
 <content>movies</content> 
<match>one</match>

    <rule field="mpaarating" operator="is">
        <value>Rated G</value>

</rule> 
</node>

file NR.xml
xml:
<?xml version='1.0' encoding='UTF-8'?> 
<node order="0" type="filter"> 
 <icon>defaultaddonssearch.png</icon>
<label>Rated NR</label>
<name>Rated NR</name>
 <content>movies</content> 
<match>one</match>

    <rule field="mpaarating" operator="is">
        <value>Rated NR</value>

</rule> 
</node>

file PG.xml
xml:
<?xml version='1.0' encoding='UTF-8'?> 
<node order="0" type="filter"> 
 <icon>defaultaddonssearch.png</icon>
<label>Rated PG</label>
<name>Rated PG</name>
 <content>movies</content> 
<match>one</match>

    <rule field="mpaarating" operator="is">
        <value>Rated PG</value>

</rule> 
</node>

file PG-13.xml
xml:
<?xml version='1.0' encoding='UTF-8'?> 
<node order="1" type="filter"> 
 <icon>defaultaddonssearch.png</icon>
<label>Rated PG-13</label>
<name>Rated PG-13</name>
 <content>movies</content> 
<match>one</match>

    <rule field="mpaarating" operator="is">
        <value>Rated PG-13</value>

</rule> 
</node>

file R.xml
xml:
<?xml version='1.0' encoding='UTF-8'?> 
<node order="6" type="filter"> 
 <icon>defaultaddonssearch.png</icon>
<label>Rated R</label>
<name>Rated R</name>
 <content>movies</content> 
<match>one</match>

    <rule field="mpaarating" operator="is">
        <value>Rated R</value>

</rule> 
</node>
Reply
#3
update turn rattings on in theme skin settings and chose ratings
edit
includes.xml
find include name="UserRatingContent"> replace code

xml:
<include name="UserRatingContent">
  <visible>!String.IsEmpty($PARAM[infolabel])</visible>
  <control type="image">
   <left>3</left>
   <top>-3</top>
   <width>0</width>
   <height>0</height>
   <aspectratio>keep</aspectratio>
   <!-- <texture colordiffuse="button_focus">overlays/badge.png</texture> -->
  </control>
  <control type="label">
   <left>-70</left>
   <top>200</top>
   <align>center</align>
   <aligny>center</aligny>
   <width>200</width>
   <height>144</height>
   <font>font 20</font>
   <label>$INFO[ListItem.Mpaa]</label>
  </control>
 </include>
Image
Reply
#4
Great.  That'll definitely give me something to work from.
Reply
#5
adding rating to video cover
you will need to save images in AppData\Roaming\Kodi\addons\skin.\extras\mpaa (IMAGES Rated G.png Rated NR.png Rated PG.png Rated PG-13.png Rated R.png )
now we add
<include content="MediaFlag">
     <param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.Mpaa,special://skin/extras/Mpaa/,.png]" />
     <param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Mpaa)" />
    </include>
to Includes_Home.xml
xml:
<include name="WidgetListPoster">
  <definition>
   <include content="CategoryLabel">
    <param name="label">$PARAM[widget_header]</param>
    <param name="list_id" value="$PARAM[list_id]"/>
   </include>
   <include content="BusyListSpinner">
    <param name="list_id" value="$PARAM[list_id]"/>
    <param name="posy" value="250"/>
   </include>
   <control type="panel" id="$PARAM[list_id]">
    <left>0</left>
    <top>115</top>
    <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
    <right>0</right>
    <height>503</height>
    <include content="WidgetListCommon">
     <param name="list_id" value="$PARAM[list_id]"/>
    </include>
    <itemlayout width="310" height="486">
     <control type="group">
      <left>68</left>
      <top>10</top>
      <include content="InfoWallMovieLayout">
       <param name="focused" value="false" />
      </include>
     </control>
    </itemlayout>
    <focusedlayout width="310" height="486">
     <control type="group">
      <depth>DepthContentPopout</depth>
      <left>68</left>
      <top>10</top>
      <animation type="Focus">
       <effect type="zoom" start="100" end="110" time="200" tween="sine" easing="inout" center="230,130" />
      </animation>
      <animation type="Unfocus">
       <effect type="zoom" start="110" end="100" time="200" tween="sine" easing="inout" center="230,130" />
      </animation>

FIND
XML:
<include content="InfoWallMovieLayout">
       <param name="focused" value="false" />
      </include>

EDIT
XML:
<include content="InfoWallMovieLayout">
       <param name="focused" value="false" />
      </include>
<include content="MediaFlag">
     <param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.Mpaa,special://skin/extras/Mpaa/,.png]" />
     <param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Mpaa)" />
    </include>


FIND
XML:
<include content="InfoWallMovieLayout">
       <param name="focused" value="true" />
      </include>
AND ADD
<include content="MediaFlag">
     <param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.Mpaa,special://skin/extras/Mpaa/,.png]" />
     <param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Mpaa)" />
    </include>

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Updating WidgetListPoster to overlay rating on Movie Poster ?0