AMT in Home Menu

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
NickMc53 Offline
Junior Member
Posts: 48
Joined: Mar 2010
Reputation: 0
Post: #1
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
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #2
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...

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
(This post was last modified: 2010-05-25 05:14 by mcborzu.)
find quote