2005-04-21, 16:58
i added this toward the top of the "home.xml"
<control>
<type>image</type>
<id>118</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>16x9home-webradio.png</texture>
<visible>!player.hasvideo</visible>
</control>
notice the id 118 and the texture picture is different. all i did was add a picture (as in screenshot) of a mp3 player, called it "16x9home-webradio.png" and placed it within the "media"folder within the skin.
then further down where the buttons are lited i added this lot
<control>
<description>webradio normal push button</description>
<type>button</type>
<id>18</id>
<posx>91</posx>
<posy>388</posy>
<width>14</width>
<height>13</height>
<label>webradio</label>
<font>special13</font>
<execute>q:\scripts\webradio\kmlbrowse.py</execute>
<onleft>98</onleft>
<onright>99</onright>
<onup>3</onup>
<ondown>9</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
note my script address maybe diferent from yours. also, notice the id of 18. this is to match the 118 id above.
the origianl weather button, i changed to the following.
<control>
<description>my weather normal push button</description>
<type>button</type>
<id>7</id>
<posx>310</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>8</label>
<font>font10</font>
<hyperlink>2600</hyperlink>
<font>font10</font>
<onleft>6</onleft>
<onright>99</onright>
<onup>6</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
remember to backup you home.xml before trying this.
hope this helps.
<control>
<type>image</type>
<id>118</id>
<posx>182</posx>
<posy>105</posy>
<width>538</width>
<height>362</height>
<texture>16x9home-webradio.png</texture>
<visible>!player.hasvideo</visible>
</control>
notice the id 118 and the texture picture is different. all i did was add a picture (as in screenshot) of a mp3 player, called it "16x9home-webradio.png" and placed it within the "media"folder within the skin.
then further down where the buttons are lited i added this lot
<control>
<description>webradio normal push button</description>
<type>button</type>
<id>18</id>
<posx>91</posx>
<posy>388</posy>
<width>14</width>
<height>13</height>
<label>webradio</label>
<font>special13</font>
<execute>q:\scripts\webradio\kmlbrowse.py</execute>
<onleft>98</onleft>
<onright>99</onright>
<onup>3</onup>
<ondown>9</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
</control>
note my script address maybe diferent from yours. also, notice the id of 18. this is to match the 118 id above.
the origianl weather button, i changed to the following.
<control>
<description>my weather normal push button</description>
<type>button</type>
<id>7</id>
<posx>310</posx>
<posy>434</posy>
<width>9</width>
<height>8</height>
<label>8</label>
<font>font10</font>
<hyperlink>2600</hyperlink>
<font>font10</font>
<onleft>6</onleft>
<onright>99</onright>
<onup>6</onup>
<ondown>2</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>20</textoffsetx>
</control>
remember to backup you home.xml before trying this.
hope this helps.