XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Skin Help and Support > Focus

Focus Subforum for the Focus skin (and mods for/of it).

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-09-29, 15:02   #1
roeroe
Senior Member
 
Join Date: Dec 2007
Posts: 136
roeroe is an unknown quantity at this point
Default Horizontal bar

Is it possible by modified some xml file to bring the weather forecast
to the horizontal bar instead of put it under Accessories?
roeroe is offline   Reply With Quote
Old 2008-09-29, 19:48   #2
Jeroen
Skilled Skinner
 
Jeroen's Avatar
 
Join Date: Feb 2008
Location: The Netherlands
Posts: 607
Jeroen is an unknown quantity at this point
Default

Sure. Home.xml is the file to edit. There's a section called "main menu" which has 6 buttons. You could add a seventh one and make that open the weather forecast. Just look through the code, shouldn't be too difficult
__________________

latest update: 11.01.09
Download
Jeroen is offline   Reply With Quote
Old 2008-09-30, 05:17   #3
roeroe
Senior Member
 
Join Date: Dec 2007
Posts: 136
roeroe is an unknown quantity at this point
Default

For those who want to do the same thing copy and paste this in your home.xml
in the main menu section

Quote:
<control type="button" id="7">
<description>Weather Button</description>
<label>Weather</label>
<posx>535</posx>
<posy>0</posy>
<width>100</width>
<height>44</height>
<onleft>5</onleft>
<onright>6</onright>
<onup>1</onup>
<ondown>2</ondown>
<texturefocus>default-button.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>menubar</font>
<textcolor>button-text</textcolor>
<aligny>-</aligny>
<align>center</align>
<textoffsety>1</textoffsety>
<onclick>ActivateWindow(2600)</onclick>
</control>

Last edited by roeroe; 2008-09-30 at 05:35.
roeroe is offline   Reply With Quote
Old 2009-03-09, 23:15   #4
theotocopulitos
Member
 
Join Date: Mar 2009
Posts: 42
theotocopulitos is on a distinguished road
Default

I alpha 6c this seems to work best:

Code:
<control type="button" id="8">
				<description>Weather Button</description>
				<label>Weather</label>
				<posx>680</posx>
				<posy>0</posy>
				<width>140</width>
				<height>44</height>
				<onleft>5</onleft>
				<onright>6</onright>
				<onup>1</onup>
				<ondown>2</ondown>
				<onclick>ActivateWindow(2600)</onclick>
				<include>menubarButton</include>
			 	</control>
Note, I needed to identify this as "8" instead of as "7" like in the previous example, since "7" is now the DVD disc.

Last edited by theotocopulitos; 2009-03-10 at 00:27. Reason: Mistake!
theotocopulitos is offline   Reply With Quote
Old 2009-03-13, 19:22   #5
tekguy
Junior Member
 
Join Date: Mar 2009
Posts: 2
tekguy is on a distinguished road
Default

The best skin so far is Focus! keepup the good work.

I have tried both the codes in home.xml. I am able to get the Weather button on the horizontal bar. But it is not getting selected, so I am not able to click it.

Any help would be great.
tekguy is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT +2. The time now is 15:36.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project