MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Skins » Hot Skins » Xface


Reply
 
Thread Tools Display Modes
Old 2008-03-04, 18:57   #1 (permalink)
Portal Member
 
Join Date: May 2007
Posts: 61
Thanks: 8
Thanked 0 Times in 0 Posts

Country:

My System

Default How do I change BasicHome buttons??

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!
Jeditrav is offline   Reply With Quote
Old 2008-03-08, 06:47   #2 (permalink)
Portal Member
 
risu's Avatar
 
Join Date: Sep 2006
Posts: 257
Thanks: 17
Thanked 18 Times in 16 Posts

Country:

My System

Default

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.
risu is offline   Reply With Quote
Old 2008-03-08, 22:45   #3 (permalink)
Portal Member
 
Join Date: May 2007
Posts: 61
Thanks: 8
Thanked 0 Times in 0 Posts

Country:

My System

Default

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)|Contro l.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)|Contro l.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

Last edited by Jeditrav; 2008-03-08 at 23:02.
Jeditrav is offline   Reply With Quote
Old 2008-03-09, 09:01   #4 (permalink)
Portal Member
 
risu's Avatar
 
Join Date: Sep 2006
Posts: 257
Thanks: 17
Thanked 18 Times in 16 Posts

Country:

My System

Default

Quote:
Originally Posted by Jeditrav View Post
Not sure what exactly you meant by Find '<!-- Sub controls *****'
Just meant that submenu structures are listed below that line.

Quote:
Originally Posted by Jeditrav View Post
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)|Contro l.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
risu is offline   Reply With Quote
Old 2008-03-18, 04:03   #5 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Send a message via MSN to furnibird
Default

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
furnibird is offline   Reply With Quote
Reply

Bookmarks

Tags
basichome, buttons, change

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with basichome... who? Skins 5 2007-12-21 05:37
basichome as default mts MediaPortal 1 Talk 1 2007-10-07 14:15
Now/Next program on BasicHome screen oopee Skins 0 2007-08-30 10:42
Basichome Screen for BlueTwo Harley Skins 16 2006-04-13 08:46
Hover Image in BasicHome Morph3us Skins 3 2006-02-11 20:24


All times are GMT +1. The time now is 02:14.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress