Kodi Community Forum
v17 Can someone explain/describe each ListItem.setArt label's location? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: v17 Can someone explain/describe each ListItem.setArt label's location? (/showthread.php?tid=314243)



Can someone explain/describe each ListItem.setArt label's location? - CaffeinatedMike - 2017-05-12

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


RE: Can someone explain/describe each ListItem.setArt label's location? - DarrenHill - 2017-05-12

Thread moved to addon development


RE: Can someone explain/describe each ListItem.setArt label's location? - gedisony - 2017-05-13

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


RE: Can someone explain/describe each ListItem.setArt label's location? - CaffeinatedMike - 2017-05-13

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.


RE: Can someone explain/describe each ListItem.setArt label's location? - gedisony - 2017-05-13

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)