Kodi Community Forum
Custom background on custom home menu button - 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: Custom background on custom home menu button (/showthread.php?tid=156210)



Custom background on custom home menu button - asturnauta - 2013-02-14

Hello

I am using XBMC Frodo on Windows 7 and I created some custom home menu buttons editig the file Home.xml with this code:

Code:
<item id="91">
            <label>Kids</label>
            <onclick>ActivateWindow(Videos,TVShowTitles,return)</onclick>
</item>

Is it possible to add some code for configure a personal background for this button?



Thanks a lot.


RE: Custom background on custom home menu button - mad-max - 2013-02-19

You need a image control as an Icon with fullscreen dimensions and add <icon>pathtoyourimage<icon> to the control...


RE: Custom background on custom home menu button - asturnauta - 2013-02-19

I have added the tag like this:


Code:
<item id="91">
                        <label>Series</label>
                        <onclick>ActivateWindow(Videos,TVShowTitles,return)</onclick>
                        <icon>special://masterprofile/fondo.jpg</icon>
</item>

But it doesn't works.

The file "fondo.jpg" is copied at userdata folder.


RE: Custom background on custom home menu button - mad-max - 2013-02-19

You also added an image control up in the Home.xml that shall show the icon?

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>300</fadetime>
            <
visible>Skin.HasSetting(SeparateBackdrops)</visible>
        </
control



RE: Custom background on custom home menu button - mprassel - 2013-02-22

mad-max,

I cannot seem to get this to work. Where do I need to put that control type? In focusedlayout or itemlayout?

Thanks for your help.