2009-05-06, 19:32
Following on from this thread asking for Now Playing Video on the Home menu I've added an On/Off option to the Global menu (press 'S').
Edit strings.xml and add this these two lines below <string id="31210">EJECT</string>
Edit DialogButtonMenu.xml and find this code and add this after it
Edit Includes_Backgrounds.xml and find and replace all instances ofwith
Edit Includes_Objects.xml and find -and replace with -
Edit strings.xml and add this these two lines below <string id="31210">EJECT</string>
Code:
<string id="31211">HOME VIDEO: OFF</string>
<string id="31212">HOME VIDEO: ON</string>
Edit DialogButtonMenu.xml and find this code
Code:
<control type="togglebutton" id="804">
<description>Home Visualiser</description>
<label>31203</label>
<altlabel>31204</altlabel>
<include>Objects_ContextMenuButton</include>
<onclick>Skin.Togglesetting(homevis)</onclick>
<usealttexture>Skin.HasSetting(homevis)</usealttexture>
</control>
Code:
<control type="togglebutton" id="812">
<description>Home Video</description>
<label>31211</label>
<altlabel>31212</altlabel>
<include>Objects_ContextMenuButton</include>
<onclick>Skin.Togglesetting(videohome)</onclick>
<usealttexture>Skin.HasSetting(videohome)</usealttexture>
</control>
Edit Includes_Backgrounds.xml and find and replace all instances of
Code:
<visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)]]</visible>
Code:
<visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)] | [Skin.HasSetting(videohome) + Player.HasMedia + Window.IsActive(Home)]]</visible>
Edit Includes_Objects.xml and find -
Code:
<include name="Objects_ButtonMenu10Group">
<height>370</height>
</include>
<include name="Objects_ButtonMenu9Group">
<height>333</height>
</include>
<include name="Objects_ButtonMenu8Group">
<height>296</height>
</include>
Code:
<include name="Objects_ButtonMenu10Group">
<height>407</height>
</include>
<include name="Objects_ButtonMenu9Group">
<height>370</height>
</include>
<include name="Objects_ButtonMenu8Group">
<height>333</height>
</include>