Listitem iconimage or thumbnailimage ?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cyberdinn Offline
Junior Member
Posts: 2
Joined: Mar 2005
Reputation: 0
Post: #1
hi,

i would like to know the difference between seticonimage(...) and setthumbnailimage(...) , what graphically make the difference ?

could someone provide a constructor sample of such a listitem ?

regards,
find quote
Asteron Offline
"Skilled" Python Coder
Posts: 928
Joined: Feb 2004
Reputation: 0
Post: #2
alright i just looked at the cvs c++ code...

basically in the renderer there is code that says..

if (item.hasthumbnail)
{
item.seticon(item.thumbnail)
}

so its just a priority thing where the thumbnail image will trump the icon one. otherwise its the same.


the constructor is
listitem([string label, string label2, string iconimage, string thumbnailimage])
find quote
cyberdinn Offline
Junior Member
Posts: 2
Joined: Mar 2005
Reputation: 0
Post: #3
thank you for those details !

it works with my script, results are very interesting! , i think this is a great feature for futur scripts.
find quote
cancan101 Offline
Donor
Posts: 51
Joined: Sep 2010
Reputation: 0
Post: #4
Are there any more details on the difference between iconImage and thumbnailImage?

If both are set, is only thumbnailImage used? or are they used for different things?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #5
Where do you think this fits best in the documentation, and I'll add the answer there.

The answer is: listitem.iconimage and listitem.thumbnailImage are distinct. If you have a thumbnail you should set it as the thumbnailImage. If you have an icon you should set it as the iconImage. If you have both set both. If you don't have one, don't set it.

What is displayed in the skin is up to the skinner. Usually they request a combination of the two via the ListItem.Icon function which will return the thumbnailimage if it is non-empty, else the iconimage. They can, however, display the icon directly using ListItem.ActualIcon or the thumb directly using ListItem.Thumb.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
cancan101 Offline
Donor
Posts: 51
Joined: Sep 2010
Reputation: 0
Post: #6
Is there a best practices recommendation as far as which of those two images tends to be larger?

In other words, if I have the same image in two resolutions, what should I do?

I have been looking at:
http://passion-xbmc.org/gros_fichiers/XB...lugin.html
and
http://xbmc.sourceforge.net/python-docs/...l#ListItem

the latter link lists two the values but does not give any hints as far as how they should be used.
find quote