Horizontal bar
#1
Is it possible by modified some xml file to bring the weather forecast
to the horizontal bar instead of put it under Accessories?
Reply
#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
Reply
#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>
Reply
#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.
Reply
#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.
Reply

Logout Mark Read Team Forum Stats Members Help
Horizontal bar2