PDA

View Full Version : Want to re-order the main menu


teitoku
2004-07-06, 10:23
alright, so you know how the options on the main screen are:
programs
music
pictures
videos

well, i want videos first. how do i go about doing that?

phunqe
2004-07-06, 11:19
you have to edit the home.xml in the appropiate directory in your skin (e.g pal, pal16x9 etc depending on what you are using).

in the home.xml file, locate for example "my pictures normal push button". here you can change posx, posy to match your preference (in your case you'll edit posy only). you'll have to change all the other buttons as well of course, if you change one.

note that you have to edit the ondown and onup tags as well for each button.
the ondown and onup tags denote which button should be selected after the current one when you press up or down on the controller. the number you see, for example <onup>6</onup> is the id of a button.
all buttons have an unique id (tag <id>), which should be specified for onup and ondown accordingly.

just write posy and id down for all buttons and then you can arrange them by just exchanging the posy tag between them(and change the onup and ondown tags accordingly of course).

teitoku
2004-07-06, 11:41
good lord, that is annoying. i was hoping there'd be an easier way to get videos to the top since i imagine most people use xbmc to play videos.
thanks for the info though.

Nogood5
2004-07-06, 11:56
thanks phunqe for your post. i put it up on the manual. hope more people will have use for it :)

phunqe
2004-07-06, 12:04
i forgot to add this as well: http://xbmc-skinner.xbox-scene.com/

watch that homepage. it looks like that will be a kick a*s skinner for xbmc. no more file editing :)

supposedly, a beta is very close to be released.

kraqh3d
2004-07-06, 18:08
if all you want to do is swap some items in the main menu, you just need to exchange the hyperlink and label tags between them. thats all. the hyperlink controls what window you jump to, and the label controls the text.

teitoku
2004-07-06, 19:13
^
had to find and change some id tag for the graphics too.

kraqh3d
2004-07-06, 23:19
oh yeah, sorry about that. i forgot you'd also need to swap the id's between the images too.

bro-man
2008-10-01, 00:41
I'm having trouble with this.
I'm using PM3, and the 9/01 TE3H build.
I have tried multiple previous builds..
I have followed the wiki post..

http://xbmc.org/wiki/?title=HOW-TO:_Edit_the_Main_Menu_(Home_Screen)

But it doesn't work properly.
I can put it where I want.
(Videos at the top, and Programs at the bottom).

BUT..I cannot select Programs after I move it. When I changed the onup, ondown tags as instructed, the select order was wacky and jumped from place to place skipping some of the menu items.

If i change the onup, ondown back to default i can select all menu items except for Programs.

Also in my home.xml I see two sections with the home buttons.
control type="group" id="9001
control type="group" id="9003

Do I need to modify both? I only modified 9001 as 9003 didn't have Programs.

wildonrio
2008-10-01, 00:49
I also have a hard time with this, I wish they would just add an option in the settings for reordering the home screen menu. Either that or just put Videos on top by default, that's the main reason any of us use XBMC anyway.

Bro-man, I just did it. It's very tricky. You need to map everything out on paper first. It is WAY more complicated than the wiki describes. This was incredibly frustrating and took me over 2 hours. There were so many random values that needed to be changed all over the place. I thought I had got everything down, but then I also had to change the positions of the little flashing yellow light graphics for each menu item! I can email you my home.xml if you want, it makes the order Videos, Programs, Music, Pictures, Weather. (I change my Programs to say Games and put my emulators in there, which is worthy to be second on the list for me). Just PM me with your email if you want it.

bro-man
2008-10-01, 04:17
Ok thanks..I thought I was doing that..and you're right.
Mine "almost" works now.

I didn't realize that I AM able to select Programs after I move it to the bottom.
It just doesn't light up. PM is incoming..

Thanks.

bro-man
2008-10-01, 06:37
Thanks for the hint about the flashing lights..

The wiki really should be updated.

For the benefit of others here's what needs to be changed.

Look for the first section marked. control type="group" id="9003"
Each menu item will be listed here.

To move them around you need to SWAP the posy values for the menu items you want to change. IE. if you want to move videos to the top and put programs in its place, you would swap posy values.

After swapping the values, think about the how you will move up and down through the menu. Each menu item has a button ID. The button IDs are used on the onup, and ondown values for each menu item. You will need to change them to match the new order.

Pay special attention to the top and bottom menu items.
The onup, ondown from these will take you to and from settings, scripts, and file manager. (which are button ID's 9, 10, and 6).

You will also need to modify onup, ondown values of these three buttons to match your new order. The section will be above the section with Programs, Videos, etc.

Finally..you will need to change the posy values of the little green light up button that indicates you have selected a menu.
These values are directly above each menu item...you are looking for homebutton-small.png You will need to again SWAP the values to match your new order.

bricklayer
2008-10-01, 13:04
The non xbox version of PM3 skin (not HD - latest T3CH) has a switch in the skin menu that puts Videos first and removes Programs completely (Settings-> Skin Settings-> Home Window-> Show Programs in Main Menu). I didn't want to remove Programs entirely, but it gave me an idea.

EDIT: Removed

See: http://xbmc.org/forum/showthread.php?p=231355#post231355

DavidA
2009-04-20, 02:55
In case anyone searches for this, I think there's an easier solution. Works for me, at least.

In home.xml of the skin you're using, look for this:

<item id="5">
<description>My Weather Button</description>
<label> $LOCALIZE[31005] </label>
<label2> $LOCALIZE[31043] </label2>
<onclick>XBMC.ActivateWindow(2600)</onclick>
<visible>!Skin.HasSetting(HideWeather)</visible>
<visible>System.HasNetwork</visible>
</item>

You'll notice that it's the third item in that section. Whatever is the third item is the default menu item. I simply changed the order so that Videos was the third and Weather was the fourth.

<content>
<item id="7">
<description>Power Button</description>
<label> $LOCALIZE[31007] </label>
<label2> $LOCALIZE[31017] </label2>
<onclick>XBMC.ActivateWindow(ShutdownMenu)</onclick>
</item>
<item id="6">
<description>My System Menu</description>
<label> $LOCALIZE[31006] </label>
<label2> $LOCALIZE[31016] </label2>
<onclick>SetFocus(506)</onclick>
</item>
<item id="1">
<description>My Videos Button</description>
<label> $LOCALIZE[31001] </label>
<label2> $LOCALIZE[31011] </label2>
<visible>!Skin.HasSetting(HideVideos)</visible>
<onclick>XBMC.ActivateWindow(24)</onclick>
</item>
<item id="5">
<description>My Weather Button</description>
<label> $LOCALIZE[31005] </label>
<label2> $LOCALIZE[31043] </label2>
<onclick>XBMC.ActivateWindow(2600)</onclick>
<visible>!Skin.HasSetting(HideWeather)</visible>
<visible>System.HasNetwork</visible>
</item>
<item id="9">
<description>My Movies Button</description>
<label> $LOCALIZE[31111] </label>
<label2> $LOCALIZE[31011] </label2>
<visible>!Skin.HasSetting(HideMovies)</visible>
<onclick>XBMC.ActivateWindow(MyVideoLibrary,movietitles,ret urn)</onclick>
</item>
<item id="8">
<description>My TV Shows Button</description>
<label> $LOCALIZE[31008] </label>
<label2> $LOCALIZE[31011] </label2>
<visible>!Skin.HasSetting(HideTVShows)</visible>
<onclick>XBMC.ActivateWindow(MyVideoLibrary,tvshowtitles,re turn)</onclick>
</item>
<item id="2">
<description>My Music Button</description>
<label> $LOCALIZE[31002] </label>
<label2> $LOCALIZE[31012] </label2>
<visible>!Skin.HasSetting(HideMusic)</visible>
<onclick>XBMC.ActivateWindow(5)</onclick>
</item>
<item id="3">
<description>My Pics Button</description>
<label> $LOCALIZE[31003] </label>
<label2> $LOCALIZE[31013] </label2>
<visible>!Skin.HasSetting(HidePictures)</visible>
<onclick>XBMC.ActivateWindow(2)</onclick>
</item>
<item id="4">
<description>My Programs Menu</description>
<label> $LOCALIZE[31004] </label>
<label2> $LOCALIZE[31014] </label2>
<visible>!Skin.HasSetting(HidePrograms)</visible>
<onclick>XBMC.ActivateWindow(1)</onclick>
</item>
<item id="10">
<description>DVD Button</description>
<label>DVD</label>
<label2> $LOCALIZE[31019] </label2>
<visible>System.HasMediadvd + !Skin.HasSetting(HideDVD)</visible>
<onclick>XBMC.PlayDVD</onclick>
</item>
</content>
</control>