Is it possible for fallback image in home screen menu

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Mudislander Offline
Skilled Skinner
Posts: 1,522
Joined: Jun 2009
Reputation: 33
Post: #1
Recently I had the background for Music on the Home screen set to Multi Image which worked great. However the images in the folder were deleted by mistake and the home screen reverted to a black screen. Obvious huh!

In the below std Confluence menu item is there a different way of doing it so that the background would revert to the $icon if the $thumb path existed, but had no content?

Code:
<item id="3">
     <label>2</label>
     <onclick>ActivateWindow(Music)</onclick>
     <icon>special://skin/backgrounds/music.jpg</icon>
     <thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
     <visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
</item>

This is not a crisis, just thought I may learn something new. Cheers.

Noli illegitimi carborundum
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,284
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
Not really the issue is more up in this bit at the top of home
PHP Code:
        <control type="multiimage">
            <
posx>0</posx>
            <
posy>0</posy>
            <
width>1280</width>
            <
height>720</height>
            <
imagepath background="true">$INFO[Container(9000).ListItem.Icon]</imagepath>
            <
timeperimage>8000</timeperimage>
            <
randomize>true</randomize>
            <
fadetime>1000</fadetime>
        </
control

and the fact that even though the images do not exist the $INFO[Container(9000).ListItem.Icon] part is not empty as it still has the correct path in it
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,522
Joined: Jun 2009
Reputation: 33
Post: #3
Okay Thanks. Pretty Much what I thought.

Noli illegitimi carborundum
find quote