How do I change BasicHome buttons?? (1 Viewer)

Jeditrav

Portal Pro
May 17, 2007
319
20
Home Country
New Zealand New Zealand
Hi,

on the Basic Home screen, with Music highlighted, there are three buttons/tabs below - Last.fm, Current Playlist, Radio. I would like to change the 'Last.fm' tab to 'Play CD' so I don't have to delve into the music menu just to hit the 'Play CD' button/tab in there. I've looked at the xml file, played around in the last.fm 'area' of the file - didn't work ;-)
Any help, tips, pointers, clearly detailed instructions would be most appreciated.

Cheers for all the good work!
 

risu

MP Donator
  • Premium Supporter
  • September 22, 2006
    279
    19
    Home Country
    Finland Finland
    So you take BasicHome.xml

    Find

    <!-- Sub controls *****

    And there you have controls. There are two fields you need to modify for each sublink:

    1. <label> - in this you can type the name which shows up on button OR you can insert number for translated string

    2. <hyperlink> - here you have to put correct ID for wanted action. There was a Wiki page which listed most common MP plugin ID's but I can't find it. You probably get a clue of correct ID by looking at Plugin on MP configuration.

    If you just rearrange buttons you can swap hyperlink-entries with labels to other positions.
     

    Jeditrav

    Portal Pro
    May 17, 2007
    319
    20
    Home Country
    New Zealand New Zealand
    Hi,

    yeah, this didn't work for me - it's what I tried originally (and again just now), doesn't work.

    Not sure what exactly you meant by Find '<!-- Sub controls *****'; I've taken the following section from basichome.xml

    <control>
    <description>Music submenu 1</description>
    <type>button</type>
    <id>606</id>
    <posX>284</posX>
    <posY>658</posY>
    <width>250</width>
    <height>40</height>
    <textalign>center</textalign>
    <textureFocus>subleft_focus.png</textureFocus>
    <textureNoFocus>subleft_nofocus.png</textureNoFocus>
    <visible>Control.HasFocus(3)|Control.HasFocus(33)|Control.HasFocus(606)|Control.HasFocus(607)|Control.HasFocus(611)</visible>
    <label>last fm radio</label>
    <hyperlink>7890</hyperlink>
    <font>font14</font>
    <textcolor>ffffffff</textcolor>
    <textcolorNoFocus>ffffffff</textcolorNoFocus>
    <textYOff>1</textYOff>
    <textXOff>40</textXOff>
    <onup>3</onup>
    <ondown>606</ondown>
    <onleft>606</onleft>
    <onright>607</onright>
    <animation effect="fade" time="300">Visible</animation>
    <animation effect="fade" time="400">WindowOpen</animation>
    <animation effect="fade" time="400">WindowClose</animation>
    </control>


    I've changed the label to 'Play CD' and the hyperlink to '890' (value taken from strings_en.xml) so the sections looks as follows

    <control>
    <description>Music submenu 1</description>
    <type>button</type>
    <id>606</id>
    <posX>284</posX>
    <posY>658</posY>
    <width>250</width>
    <height>40</height>
    <textalign>center</textalign>
    <textureFocus>subleft_focus.png</textureFocus>
    <textureNoFocus>subleft_nofocus.png</textureNoFocus>
    <visible>Control.HasFocus(3)|Control.HasFocus(33)|Control.HasFocus(606)|Control.HasFocus(607)|Control.HasFocus(611)</visible>
    <label>Play CD</label>
    <hyperlink>890</hyperlink>
    <font>font14</font>
    <textcolor>ffffffff</textcolor>
    <textcolorNoFocus>ffffffff</textcolorNoFocus>
    <textYOff>1</textYOff>
    <textXOff>40</textXOff>
    <onup>3</onup>
    <ondown>606</ondown>
    <onleft>606</onleft>
    <onright>607</onright>
    <animation effect="fade" time="300">Visible</animation>
    <animation effect="fade" time="400">WindowOpen</animation>
    <animation effect="fade" time="400">WindowClose</animation>
    </control>


    But nothing happens - when I use the remote to highlight 'Play CD' on the submenu, the screen flicks and resets basichome.
    I wonder if a 'Hyperlink' is what I want in there? 'Play CD' is more of an action to be taken rather than a page to be linked to.
    Also wondering about '<id>606</id>' - does this number need to be changed??
    Any thoughts??

    Cheers
     

    risu

    MP Donator
  • Premium Supporter
  • September 22, 2006
    279
    19
    Home Country
    Finland Finland
    Not sure what exactly you meant by Find '<!-- Sub controls *****'

    Just meant that submenu structures are listed below that line.

    I've changed the label to 'Play CD' and the hyperlink to '890' (value taken from strings_en.xml) so the sections looks as follows

    <control>
    <description>Music submenu 1</description>
    <type>button</type>
    <id>606</id>
    <posX>284</posX>
    <posY>658</posY>
    <width>250</width>
    <height>40</height>
    <textalign>center</textalign>
    <textureFocus>subleft_focus.png</textureFocus>
    <textureNoFocus>subleft_nofocus.png</textureNoFocus>
    <visible>Control.HasFocus(3)|Control.HasFocus(33)|Control.HasFocus(606)|Control.HasFocus(607)|Control.HasFocus(611)</visible>
    <label>Play CD</label>
    <hyperlink>890</hyperlink>
    <font>font14</font>
    <textcolor>ffffffff</textcolor>
    <textcolorNoFocus>ffffffff</textcolorNoFocus>
    <textYOff>1</textYOff>
    <textXOff>40</textXOff>
    <onup>3</onup>
    <ondown>606</ondown>
    <onleft>606</onleft>
    <onright>607</onright>
    <animation effect="fade" time="300">Visible</animation>
    <animation effect="fade" time="400">WindowOpen</animation>
    <animation effect="fade" time="400">WindowClose</animation>
    </control>
    That id is for skin use only I guess. Label and hyperlink are the only thing you need to mod here. 890 you found on string-file is just for translation. So you can actually put it on label like this:

    <label>890</label>

    and it'll do the same thing. You still need to find correct ID for your function. I found one document but like you guessed already it doesn't work as it's a button you want to map. You can only open actual xml-pages via hyperlinks, not make actions placed on pages. Anyways I found the page I was referring before and here it is:

    MediaPortal1 Development/SkinArchitecture/window id - MediaPortal Wiki Documentation
     

    furnibird

    Retired Team Member
  • Premium Supporter
  • March 15, 2008
    118
    61
    Sydney
    I have managed to change the basichome buttons to other hyperlinks but the problem i am having is that i added a 3rd button to the video icon of the Foofaraw skin so it has my tv shows / trailers / videos (i changed the main icon to go to my films which works) but it will not let me select the new video button with the remote and i can use the mouse but it fades very fast.The link worked but i cant select it. to add this button i just copy/paste the trailer button info and changed the links. Am new to MP and new to xml any help would be great.
    I want to set up the homebasic screen with more buttons so i dont have to go to the hover screen. Thanks
     

    Users who are viewing this thread

    Top Bottom