Kodi Community Forum
Horizontal bar - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: reFocus (https://forum.kodi.tv/forumdisplay.php?fid=72)
+----- Thread: Horizontal bar (/showthread.php?tid=38089)



Horizontal bar - roeroe - 2008-09-29

Is it possible by modified some xml file to bring the weather forecast
to the horizontal bar instead of put it under Accessories?


- Jeroen - 2008-09-29

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


- roeroe - 2008-09-30

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>



- theotocopulitos - 2009-03-09

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.


- tekguy - 2009-03-13

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.