Kodi Community Forum
Difference ListItem.Icon & ListItem.thumb - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Difference ListItem.Icon & ListItem.thumb (/showthread.php?tid=101114)



Difference ListItem.Icon & ListItem.thumb - butchabay - 2011-05-09

Hi guys,

i've added an option to choose between banner.jpg support or normal scraped thumb ... for Banner Views

... here is what i've done:

PHP Code:
<control type="image">
                            <
posx>0</posx>
                            <
posy>0</posy>
                            <
width>575</width>
                            <
height>106</height>
                            <
bordersize>5</bordersize>
                            <
aspectratio>stretch</aspectratio>
                            <
fadetime>200</fadetime>
                            <
texture background="true" fallback="tvbanner.png" diffuse="maskbanner.png">$INFO[ListItem.Path]banner.jpg</texture>
                            <
colordiffuse>grey</colordiffuse>
                            <
visible>Skin.HasSetting(jpgsupport)</visible>
                        </
control>
                        <
control type="image">
                            <
posx>0</posx>
                            <
posy>0</posy>
                            <
width>575</width>
                            <
height>106</height>
                            <
bordersize>5</bordersize>
                            <
aspectratio>stretch</aspectratio>
                            <
fadetime>200</fadetime>
                            <
texture background="true" fallback="tvbanner.png" diffuse="maskbanner.png">$INFO[ListItem.Icon]</texture>
                            <
colordiffuse>grey</colordiffuse>
                            <
visible>!Skin.HasSetting(jpgsupport)</visible>
                        </
control

My Question:
Is there any difference between ListItem.Icon and ListItem.Thumb ?
I'm asking that to understand if there's a way to separate the downloaded banners and posters, (not talking about local files but the cached images)

Thanx


- spiff - 2011-05-09

there's a difference but nothing related to thumb vs banner. the icon will be the general e.g. "video" identifying icon from the skin, while the thumb will be the downloaded image.


- butchabay - 2011-05-09

Thank you for the fast answer.


- Jezz_X - 2011-05-10

like spiff said
Thumb will show only a set/downloaded image or blank
Icon will show a set/downloaded image plus a default icon if it doesn't have a thumb


- butchabay - 2011-05-10

Jezz_X Wrote:like spiff said
Thumb will show only a set/downloaded image or blank
Icon will show a set/downloaded image plus a default icon if it doesn't have a thumb

Thanx Jezz,
so there is no other way show banner and poster simultaneously than create an option to support banner.jpg ...