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,
Listitem iconimage or thumbnailimage ?
cyberdinn
Junior Member Posts: 2 Joined: Mar 2005 Reputation: 0 |
2005-03-23 12:39
Post: #1
|
| find quote |
Asteron
"Skilled" Python Coder Joined: Feb 2004 Reputation: 0 |
2005-03-23 21:49
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]) Add yourself to the xbmc forums frappr map! Collection of XBMC and Python resources - Screensaver Megapack |
| find quote |
cyberdinn
Junior Member Posts: 2 Joined: Mar 2005 Reputation: 0 |
2005-03-23 23:02
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
Member+ Posts: 46 Joined: Sep 2010 Reputation: 0 |
2012-03-05 00:37
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
Team-XBMC Developer Posts: 24,564 Joined: Oct 2003 Reputation: 138 |
2012-03-05 00:58
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. ![]() |
| find quote |
cancan101
Member+ Posts: 46 Joined: Sep 2010 Reputation: 0 |
2012-03-05 01:05
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 |

![[Image: asterwaverv9.png]](http://img504.imageshack.us/img504/6545/asterwaverv9.png)
![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help