HOW-TO:Edit the home screen skin files

This tutorial will show you how to change the main menu on the Home Screen of the Confluence skin. This is achieved by editing 720p/Home.xml.
 * You can find a list of the windows and their xml files here:
 * Window IDs

How to Reorder the Main Menu
In the relevant Home.xml file, locate for example this piece of code: 8    ActivateWindow(Weather) -    -     !Skin.HasSetting(HomeMenuNoWeatherButton) + !IsEmpty(Weather.Plugin) this is the code for the Weather button on the Home menu. It's the first item on the left of the menu. You can just cut the piece of code and paste it after for the code for the Music button for instance: 2    ActivateWindow(Music) -    -     !Skin.HasSetting(HomeMenuNoMusicButton)

Now the weather button will show up next to, on the right of, the music button on the Home menu.

As you may have found out by now, XBMC will show the buttons (left to right) in the order they are listed in the xml file.

How to Change the Function of an Option
The homepage of XBMC features the main sections (Programs, Pictures, Videos, Music, Weather, Settings) as separate buttons. This tutorial shows you how to change one of these buttons so that it directly open a certain section of the library.

The action of a button is defined by it's function. If you look at the code example above, you'll see the Music button uses ActivateWindow(Music). Clicking on the button will take you either to the Music Library or the Music Files list.

If you prefer to go directly to the artist listing, you can change the function to:

ActivateWindow(MusicLibrary,Artists)

Other options are listed on the Opening_Windows_and_Dialogs page

How to add a new button to the Menu
Let's say you want a button on the menu linking to your kids movies. the fist thing you need to do as add the folder containg the kids movies as a source in XBMC. This can be done by going to Videos > Files > Add videos

Alternatively, configure the sources.xml in your userdata folder as follows:

Adding a button is pretty easy, you can just use the code of one of the other buttons as a template. Kids Movies ActivateWindow(Videos,Kids) -    - The only thing you need to take care of, is to use an unique 'id' for the button. In the code above, i've chosen to use id="19" as it's not used elsewhere on the Home menu.

Now we have our code ready, we can simple insert it wherever we want in between the other menu buttons.