Kodi Community Forum
Is it possible for fallback image in home screen menu - 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)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
+---- Thread: Is it possible for fallback image in home screen menu (/showthread.php?tid=106372)



Is it possible for fallback image in home screen menu - Mudislander - 2011-07-27

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.


- Jezz_X - 2011-07-27

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


- Mudislander - 2011-07-27

Okay Thanks. Pretty Much what I thought.