Kodi 17 - Can someone explain/describe each ListItem.setArt label's location?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
CaffeinatedMike Offline
Junior Member
Posts: 39
Joined: May 2017
Reputation: 0
Question  Can someone explain/describe each ListItem.setArt label's location?
Post: #1
I've been looking over the Kodi development documentation and came upon the ListItem.setArt function, which I'd like to apply to my addon. In my addon I list directories and files in the same List, so I'd like to somehow show a folder icon on the list items that bring the user to another subdirectory. Problem is I don't know which setArt label applies to which image that appears on the screen. Can anyone tell me where each image type is found on the screen?

Labels
thumb
poster
banner
fanart
clearart
clearlogo
landscape
icon

Quote:pro·gram·mer (n): An organism capable of converting caffeine into code.
find quote
DarrenHill Offline
Team-Kodi Minion
Posts: 5,917
Joined: Oct 2014
Reputation: 149
Location: UK, except when I'm not.
Post: #2
Thread moved to addon development

| Banned add-ons (wiki) | Forum rules (wiki) | First time user (wiki) | FAQs (wiki) | Troubleshooting (wiki) | Add-ons (wiki) | Free content (wiki) | Debug Log (wiki) | Free Movies/TV Shows
find quote
gedisony Offline
Senior Member
Posts: 231
Joined: Mar 2015
Reputation: 13
Post: #3
for plugins; they depend on the skin.
the skins usually use thumb and/or icon.
they sometimes use thumb if icon is not present.
they also have a default icon for folder
find quote
CaffeinatedMike Offline
Junior Member
Posts: 39
Joined: May 2017
Reputation: 0
Post: #4
But on the default confluence skin for example, where would you see the thumb/icon? Is that the image that's on the right side of screen? That's what I'm trying to figure out for all the above values, an example of what they look like/where I'd see them.

Quote:pro·gram·mer (n): An organism capable of converting caffeine into code.
find quote
gedisony Offline
Senior Member
Posts: 231
Joined: Mar 2015
Reputation: 13
Post: #5
They are skin dependent, i'll just use the old estuary skin as an example because that's what i have;

in where the skin files are stored. ...\addons\skin.estuary\1080i
in a file that is named like view_50_list.xml
there will be a <control type="image"> with <left> and <right> coordinates about where that image will be.
that control will have a <texture> tag with a value of $VAR[IconWallThumbVar]

there will be another file called Variables.xml where you'll find
Code:
    <variable name="IconWallThumbVar">
        <value condition="Container.Content(studios)">$INFO[ListItem.Label,resource://resource.images.studios.white/,.png]</value>
        <value condition="!IsEmpty(ListItem.Thumb)">$INFO[ListItem.Thumb]</value>
        <value>$INFO[ListItem.Icon]</value>
    </variable>

you can now see that it has some logic about studios and will use ListItem.Thumb if it is not empty but it will use icon. (likely as default)
find quote