Hitcher
2009-05-06, 20:32
Following on from this thread (http://xbmc.org/forum/showthread.php?t=50428) asking for Now Playing Video on the Home menu I've added an On/Off option to the Global menu (press 'S').
http://img11.imageshack.us/img11/7075/screenshot000v.jpg
http://img11.imageshack.us/img11/3215/screenshot001aei.jpg
http://img11.imageshack.us/img11/2816/screenshot002eya.jpg
Edit strings.xml and add this these two lines below <string id="31210">EJECT</string>
<string id="31211">HOME VIDEO: OFF</string>
<string id="31212">HOME VIDEO: ON</string>
Edit DialogButtonMenu.xml and find this 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> and add this after it <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 <visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)]]</visible>with <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 - <include name="Objects_ButtonMenu10Group">
<height>370</height>
</include>
<include name="Objects_ButtonMenu9Group">
<height>333</height>
</include>
<include name="Objects_ButtonMenu8Group">
<height>296</height>
</include>and replace with - <include name="Objects_ButtonMenu10Group">
<height>407</height>
</include>
<include name="Objects_ButtonMenu9Group">
<height>370</height>
</include>
<include name="Objects_ButtonMenu8Group">
<height>333</height>
</include>
http://img11.imageshack.us/img11/7075/screenshot000v.jpg
http://img11.imageshack.us/img11/3215/screenshot001aei.jpg
http://img11.imageshack.us/img11/2816/screenshot002eya.jpg
Edit strings.xml and add this these two lines below <string id="31210">EJECT</string>
<string id="31211">HOME VIDEO: OFF</string>
<string id="31212">HOME VIDEO: ON</string>
Edit DialogButtonMenu.xml and find this 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> and add this after it <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 <visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)]]</visible>with <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 - <include name="Objects_ButtonMenu10Group">
<height>370</height>
</include>
<include name="Objects_ButtonMenu9Group">
<height>333</height>
</include>
<include name="Objects_ButtonMenu8Group">
<height>296</height>
</include>and replace with - <include name="Objects_ButtonMenu10Group">
<height>407</height>
</include>
<include name="Objects_ButtonMenu9Group">
<height>370</height>
</include>
<include name="Objects_ButtonMenu8Group">
<height>333</height>
</include>