2010-01-26, 00:58
All custom submenu buttons are found in the Includes_HomeCustomButtons.xml
Simply add the label and path in the Button control, remove the <visible>false</visible> tag, and then add image path in the image control.
ie
Before -
To add more buttons just copy and paste the complete group making sure to change the button id and visible condition, in this case change both 3507 instances to 3508.
Simply add the label and path in the Button control, remove the <visible>false</visible> tag, and then add image path in the image control.
ie
Before -
PHP Code:
<!--TV Sub Menu-->
<include name="CustomTVButtons">
<control type="button" id="3507">
<label>-</label>
<onclick>-</onclick>
<include>Home_MainMenuLabel</include>
<visible>false</visible>
</control>
</include>
<include name="CustomTVImages">
<control type="image">
<include>Home_MainMenuIconF</include>
<texture diffuse="mainmenu/homematte.png" fallback="backdrops/tvshows.jpg">-</texture>
<visible>ControlGroup(3500).HasFocus() + ControlGroup(3500).HasFocus(3507)</visible>
</control>
</include>
PHP Code:
<!--TV Sub Menu-->
<include name="CustomTVButtons">
<control type="button" id="3507">
<label>$LOCALIZE[40170]</label>
<onclick>ActivateWindow(24,plugin://video/IPlayer/?tvradio=tv)</onclick>
<include>Home_MainMenuLabel</include>
</control>
</include>
<include name="CustomTVImages">
<control type="image">
<include>Home_MainMenuIconF</include>
<texture diffuse="mainmenu/homematte.png" fallback="backdrops/tvshows.jpg">customimages/iplayer.jpg</texture>
<visible>ControlGroup(3500).HasFocus() + ControlGroup(3500).HasFocus(3507)</visible>
</control>
</include>
To add more buttons just copy and paste the complete group making sure to change the button id and visible condition, in this case change both 3507 instances to 3508.