Kodi Community Forum
AMT in Home 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: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: Night (https://forum.kodi.tv/forumdisplay.php?fid=130)
+----- Thread: AMT in Home Menu (/showthread.php?tid=74445)



AMT in Home Menu - NickMc53 - 2010-05-24

Wondering which xml I need to edit to put an Apple Movie Trailers button in the home menu.

Also, what code do I add to that xml Wink


- mcborzu - 2010-05-25

If or until I add support for favorites home menu items in a premerge version you can easily add them manually:

1. Open Home.xml
2. You'll see a section of code like this, starting at line 114:
PHP Code:
<item id="1">
                    <
description>music</description>
                    <
label>$LOCALIZE[31010]</label>
                    <
icon>special://skin/media/backgrounds/music.jpg</icon>
                    
<thumb>$INFO[Skin.String(CustomMusicFolder)]</thumb>
                    <
onclick>XBMC.ActivateWindow(MyMusic,return)</onclick>
                    <
visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
                </
item

3. Take one of those blocks and change it around like so:
Quote:<item id="1">
<description>music</description>
<label>AMT</label>
<icon>special://skin/media/backgrounds/amt.jpg</icon>
<thumb>F:\Documents\XBMC\Backdrops\movies</thumb>
<onclick>ActivateWindow(10025,videodb://1/1/8/)</onclick>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible> <--delete this line
</item>
4. Where <onclick>XBMC.ActivateWindow(MyMusic,return)</onclick> is where you put the Path to AMT.
5. Set AMT as a favorite
6. Open up favorites.xml, located in C:\Users\mcborzu\AppData\Roaming\XBMC\userdata
You'll see a line that looks like this below, I dont have AMT so I used the genre Animation is this example:
Quote:<favourite name="Animation">ActivateWindow(10025,videodb://1/1/8/)</favourite>
7. Copy the bolded part ActivateWindow(10025,videodb://1/1/8/) and overwrite <onclick>XBMC.ActivateWindow(MyMusic,return)</onclick>
8. To set a single image just place a image in the skin.night/media/backdrops
9. To use rotating backdrop: overwrite <thumb>$INFO[Skin.String(CustomMusicFolder)]</thumb> with the location of a folder with your images like so: <thumb>F:\Documents\XBMC\Backdrops\movies</thumb>
10. Change <item id="1"> to <item id="18">


That should be it...


Actually I'll try and look into adding script support for this...