Rating overlay in lists

j0anita

Developer
Sep 1, 2012
169
0
0
Portugal
Hi. Today i found this picture and i saw rating in lists.



I'm wondering if there is a overlay to that.. Anybody knows?

Code:
https://github.com/xbmc/xbmc/blob/master/xbmc/guilib/GUIListItem.h
Nothing here.

Thanks ;)
 

j0anita

Developer
Sep 1, 2012
169
0
0
Portugal
Thanks for reply. Are you talking about first line or second?

Code:
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
liz.setInfo( type="Video", infoLabels={ "Title": name, "Rating": rating, "overlay":overlay, "playcount":playcount} )
using label2?

ListItem([label, label2, iconImage, thumbnailImage, path]) -- Creates a new ListItem.

label : [opt] string or unicode - label1 text.
label2 : [opt] string or unicode - label2 text.
 

fastcolors

New member
Dec 1, 2012
35
0
0
Italy
nope don't use label2,

listItem.label2 & listitem.Rating

are 2 different properties for us skinners.

it will look messed up is you fill label2 with ratings values.. ;)
 

j0anita

Developer
Sep 1, 2012
169
0
0
Portugal
Well i used this:

ok=True; liz=xbmcgui.ListItem(name,iconImage="DefaultFolder.png", thumbnailImage=iconimage, Rating=ratingvalue))
TypeError: 'Rating' is an invalid keyword argument for this function
If I set this:

liz.setInfo( type="Video", infoLabels={ "Title": name, "Rating":ratingvalue} )
Set the value on info page, but doesn't show on list.
 

fastcolors

New member
Dec 1, 2012
35
0
0
Italy
edit!!
--wait---

completely though You were talking about something else!!!

MY ABSOLUTE BAD!!!!

set label2

sorry.:rolleyes:
 
Last edited:

j0anita

Developer
Sep 1, 2012
169
0
0
Portugal
Well it's a simple addDir with "Rating" value on setinfo(). The value displays on info page, but not in list.

I just want to add the rating value to list, but don't know how.