Reply to thread

[collapse]

<control>

      <description>music background fanart image</description>

      <type>image</type>

      <id>722</id>

      <posX>0</posX>

      <posY>0</posY>

      <width>1280</width>

      <height>720</height>

      <texture>e:\Music\#Play.Current.Artist\folder.jpg</texture>

      <animation effect="fade" time="400" delay="0">WindowOpen</animation>

    </control>


    <control>

      <description>music background image (no fanart available)</description>

      <type>image</type>

      <id>0</id>

      <posX>0</posX>

      <posY>0</posY>

      <width>1280</width>

      <height>720</height>

      <texture>.\nomusicfanart.jpg</texture>

      <visible>!Control.HasThumb(722)</visible>

      <animation effect="fade" time="400" delay="0">WindowOpen</animation>

    </control>

[/collapse]


Will the above work.

First control attempts to display e:\music\%artist%\folder.jpg as background

If first control has no image then 2nd control displays nomusicfanart.jpg as background

I assume !Control.HasThumb(722) returns true if first control can display the texture and false if folder.jpg is missing.


Top Bottom