Kodi Community Forum
Label when no image is found - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Label when no image is found (/showthread.php?tid=353054)



Label when no image is found - aneurysm- - 2020-04-01

So I'm doing some editing on a skin, where instead of the name of the movie through a label with listitem.Label I want to show the clearlogo of the movie.
Getting that is all fine .. but I can't figure out how to show the label (title) of the movie as text, when there is no clearlogo available.

      <control type="image">
            <left>525</left>
            <top>184</top>
            <width>230</width>
            <height>89</height>
            <texture background="true" fallback="special://skin/backgrounds/fallback.png">$INFO[ListItem.Art(clearlogo)]</texture>
            <fadetime>100</fadetime>
            <aspectratio scalediffuse="false" align="center" aligny="center">stretch</aspectratio>
            <visible>!IsEmpty(ListItem.Title)</visible>
      </control>

this gets me the clearlogo where I want it, and a fallback.png when none is found ... but how do I go about when no clearlogo is found .. I still get the name of the movie in regular text ?

tnx in advance

EDIT : and as happens so much of the time ... I found it myself right after I posted this Smile Sorry for the forum spam


RE: Label when no image is found - udangaribaldi - 2020-04-06

im just a tinker but i assume it will probably involve a 'include condition' - how did u solve it


RE: Label when no image is found - the_other_guy - 2020-04-07

the way i do it is just and image then a label

xml:
<control type="label">
                        <top>-120</top>
                        <left>0</left>
                        <width>100%</width>
                        <height>93</height>
                        <font>font52_title</font>
                    
                        <label>[COLOR WHITE]$INFO[ListItem.Label][/COLOR]</label>
                        <shadowcolor>black</shadowcolor>
                    
                        <align>center</align>
                        <visible>String.IsEmpty(BannerArt)</visible>
                    </control>