Horizontal bar

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
roeroe Offline
Senior Member
Posts: 147
Joined: Dec 2007
Reputation: 0
Post: #1
Is it possible by modified some xml file to bring the weather forecast
to the horizontal bar instead of put it under Accessories?
find quote
Jeroen Offline
Skilled Skinner
Posts: 2,116
Joined: Feb 2008
Reputation: 8
Location: The Netherlands
Post: #2
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 Smile
find quote
roeroe Offline
Senior Member
Posts: 147
Joined: Dec 2007
Reputation: 0
Post: #3
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>
(This post was last modified: 2008-09-30 04:35 by roeroe.)
find quote
theotocopulitos Offline
Member
Posts: 55
Joined: Mar 2009
Reputation: 0
Post: #4
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.
(This post was last modified: 2009-03-09 23:27 by theotocopulitos.)
find quote
tekguy Offline
Junior Member
Posts: 2
Joined: Mar 2009
Reputation: 0
Post: #5
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.
find quote