Label when no image is found
#1
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
Reply
#2
im just a tinker but i assume it will probably involve a 'include condition' - how did u solve it
Reply
#3
the way i do it is just and image then a label

<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>
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Label when no image is found00
This forum uses Lukasz Tkacz MyBB addons.