PDA

View Full Version : [MOD] Home Video On/Off


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>

hikaricore
2009-05-06, 20:59
Awesome!

diemos
2009-05-06, 21:01
awesome job. thank you.

logictester
2009-05-06, 21:34
great! thank you

Silverskool
2009-05-06, 22:13
It is possible to get this mod for a smaller size than fullscreen, like the size of the now playing album cover art for music playing?

diemos
2009-05-06, 22:25
^ super idea

hikaricore
2009-05-06, 22:25
That would require a significant amount of work for size, placement, etc.
I suggest seeing how other skins like PM3 do it and implementing it yourself.

Only One Haze
2009-05-07, 00:38
where is the strings.xml?? cannot locate mine its not in my 720p folder in the auriga skin folder

nm found it, its in the language folder

azido
2009-05-07, 01:04
That would require a significant amount of work for size, placement, etc.
I suggest seeing how other skins like PM3 do it and implementing it yourself.

size is no matter. just modify hitcher's code to any size you want. but you will need to create some kind of border image so it does not sit "naked" on front of your background.

Hitcher
2009-05-08, 15:25
UPDATE: Code change to Includes_Objects.xml to increase Menu size to fit all buttons.

http://img13.imageshack.us/img13/231/screenshot002iod.jpg

DJ_Elo
2009-05-14, 10:28
heya,this is really cool and ure other mods have really made my aeon nicer..but im having trouble using home video.. once ive implemented these changes my background stays black at all times on home and when i go into video/pictures/music the backdrops for that folder rapidly keep changing..this is same with home video on or off.. I might have made a mistake somewhere,but tried it twice and still same :( on all home menues it will be black while scrolling it that is..

oleroc
2009-05-23, 09:45
I Second this ^^^^
Is it possible to get the backdrops back when you choose video off in the menu?

Hitcher
2009-05-23, 11:24
Did you replace all 4 instances of this<visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)]]</visible>with this<visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)] | [Skin.HasSetting(videohome) + Player.HasMedia + Window.IsActive(Home)]]</visible>in the Includes_Backgrounds.xml?

DJ_Elo
2009-05-23, 15:48
yup, redid it again and it's still black ..both with video off and on

DJ_Elo
2009-05-23, 15:50
and just checked..the movie isn't playing in the main menu either ;/

DJ_Elo
2009-05-23, 16:04
lol,just checked my home and somehow I musta replaced with the original so there was no video window ..checking now
jup..works perfect :)

DJ_Elo
2009-05-23, 16:14
well..the video works perfect..but now i noticed again that when i go into any of the menu's (apart from movies) that xbmc lags horribly as it flickers through all the background images over and over (with both home video setting on/off ) and that the backgrounds don't show at all in the main menu with on/off and movie stopped. Am i missing something here?

Hitcher
2009-05-23, 16:37
I don't know what to suggest apart from starting again with a clean build of Augira.

DJ_Elo
2009-05-23, 16:45
yeah,gonna try that..already have a couple of test skins anyways :)

ok..works fine with clean skin..slowly gonna add mods n see what brakes it

Ritzie
2009-05-30, 04:35
Did you replace all 4 instances of this<visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)]]</visible>with this<visible>![Control.IsVisible(87) | [Skin.HasSetting(homevis) + Player.HasAudio + Window.IsActive(Home)] | [Skin.HasSetting(videohome) + Player.HasMedia + Window.IsActive(Home)]]</visible>in the Includes_Backgrounds.xml?

I got everything but this one. I looked through Includes_Backgrounds.xml and cannot find anything with an 87. I have the following:
<visible>Control.IsVisible(218) | Window.IsVisible(130) | Window.IsVisible(109) | Window.IsVisible(111) | Window.IsVisible(600) | Window.IsVisible(402) | Window.IsVisible(2000) | Window.IsVisible(601) | Window.IsVisible(602) | Window.IsVisible(601) | Window.IsVisible(132) | Window.IsVisible(106) | Window.IsVisible(103) | Window.IsVisible(129) | Window.IsVisible(126)</visible>
</control>

<visible>[Window.IsActive(100) | Window.IsActive(136) | Window.IsActive(107) | Window.IsActive(2002) | Window.IsActive(104) | Window.IsVisible(133) | Window.IsVisible(101) | Window.IsActive(112)] + ![Control.IsVisible(57) | Control.IsVisible(54)] + ![Window.IsActive(Home) + Skin.HasSetting(lowermainmenu)]</visible>
</control>

This is in my 720p folder. Am I looking in the wrong place?