PDA

View Full Version : Newb: how to add xbmclyrics to context menu


XBLgamertag
2005-07-07, 11:30
hi,
i wasn't sure which forum to post this in, so i'll try here ;)

could someone tell me how i could add xbmclyrics (a script) to the context menu (i think that is what it's called - white button on controller pops it up) whilst in the "my music" view ?

i've looked at the skinning guide, examined the xml files of a skin and searched a few forums... i know how to add a button to the home screen - but is the menu, that i'm talking about, hardcoded into xbmc or can it be changed ?

i've found the execute script command that i want to add, but can't see where to add it :help:

cheers *:)

Chokemaniac
2005-07-07, 12:41
the context menus are hardcoded. just like the settings. this way we avoid having all skinners to update their skin everytime we change something.

but you could add an extra button, that would then be in every contextmenu. (edit dialiogcontextmenu.xml for this)

you also have the options submenu, shutdownmenu (right thumbstick click) or the left panel of buttons in the music section...

XBLgamertag
2005-07-07, 13:55
thanx chokemaniac,
i thought i was just being blind ;)

i'll add it to the submenu then, that's the one that goes down the left hand side in "my music" - i think *:nuts:

jmarshall
2005-07-07, 14:00
yeah, i'd look at adding it to the musicosd.

you "just" need to add a button, make sure that navigation is set up so you can navigate to it, then set the <execute> tag to launch the script.

this looks like a good topic for a tutorial. i'm happy to guide you through the process, and we can use the discussion for the basis of a tutorial in the online manual - sound good?

right, first step is to open musicosd.xml - we'll load the one in the pal_4x3 folder - this is used for all 4x3 resolutions (including ntsc)

next, we need to add a button control. feel free to draw up some images for it, and then copy a <control> block from the other buttons in the musicosd.xml file and edit it for placement and size and change the textures.

next, we need to update the navigation using the <onup>, <ondown>, etc. tags.

lastly, we tell xbmc what action the button should perform by setting up the <execute> tag.

let me know which steps need more information - perhaps you could type up what you've done at each step (including the .xml lines you add etc.) so we can use them for a tutorial to help others?

cheers,
jonathan

smuto
2005-07-07, 22:21
window with lirics script is a last actiw one when i run it from osdmusic - to take control again script must be close

is the way to make music panel close when script is execute ?

XBLgamertag
2005-07-11, 12:34
thanks jmarshall,
just saw your reply, i'm about to download an updated version of xbmc

i'll install it, add the button and post my findings tomorrow ;)

i think the musicosd was getting a bit full though :(

cheers

KoTiX
2005-07-11, 16:16
i've added the xbmclyrics button to the music player (press "start" when music is playing) in my skin "the orbs" july 9 version.
you can download it from xbox-skins.net or allxboxskins.com and look in playercontrols.xml
cheers. :)