Solved help with custom backgrounds for each main menu item
#1
Hi guys,

Jeroen made it clear that he will not be adding option for different background based on main menu item.

Since I am an enthusiast photographer (or whish to think I am Tongue ) i would like to have that option in refocus.

For last week I have been trying to make sense of how skin works, but I am not a coder unfortunately.

So far I was able to add "Select background" option in main manu costumistaion options and it is browsable.

Added this to script-shortcust.xml

Code:
    <!--set background-->
    <control type="button" id="310">
        <width>492</width>
        <include>dialog_ControlCommons</include>
        <label>$ADDON[script.skinshortcuts 32045]</label>
        <label2>$INFO[Container(211).ListItem.Property(Background)]</label2>
    </control>

And added this to overrides.xml

Code:
<background label="Vidoes">home\videos\</background>
    <background label="Music">home\music\</background>
    <background label="DVD">home\dvd\</background>
    <background label="Movies">home\movies\</background>
    <background label="TVShows">home\tvshows\</background>
    <background label="Pictures">home\pictures\</background>
    <background label="Weather">home\weather\</background>
    <background label="Settings">home\settings\</background>
    <background label="Shutdown">home\shutdown\</background>
    <background label="Favourites">home\favourites\</background>
    <background label="Addons">home\addons\</background>
    <backgrounddefault label="Vidoes" group="mainmenu">home\videos\</backgrounddefault>
    <backgrounddefault label="Music" group="mainmenu">home\music\</backgrounddefault>
    <backgrounddefault label="DVD" group="mainmenu">home\dvd\</backgrounddefault>
    <backgrounddefault label="Movies" group="mainmenu">home\movies\</backgrounddefault>
    <backgrounddefault label="TVShows" group="mainmenu">home\tvshows\</backgrounddefault>
    <backgrounddefault label="Pictures" group="mainmenu">home\pictures\</backgrounddefault>
    <backgrounddefault label="Weather" group="mainmenu">home\weather\</backgrounddefault>
    <backgrounddefault label="Settings" group="mainmenu">home\settings\</backgrounddefault>
    <backgrounddefault label="Shutdown" group="mainmenu">home\shutdown\</backgrounddefault>
    <backgrounddefault label="Favourites" group="mainmenu">home\favourites\</backgrounddefault>
    <backgrounddefault label="Addons" group="mainmenu">home\addons\</backgrounddefault>

But nothing i happening Tongue

If someone could point me in the right direction that would be grate.

I would not mind if paths to folders are hardcoded just to get it running.
Reply
#2
So, you've got the button that opens the window to select backgrounds, you've got the paths set up, but you still need an actual image control that actually displays the chosen background(s) Smile

Assuming you want to use a folder of images and not a single picture per item that would be something like:

PHP Code:
<control type="multiimage">
    <include>
screen_Dimensions</include>
    <
timeperimage>10000</timeperimage>
    <
fadetime>300</fadetime>
    <
randomize>true</randomize>
    <
imagepath background="true">$INFO[Container(9000).ListItem.Property(Background)]</imagepath>
</
control

This will go in home.xml. Assuming you don't care about keeping the other background options available you'll want to delete (or better comment out) this include:

PHP Code:
<include>home_Background</include> 

And put the image control from above after that line.

The container number 9000 refers to the home menu's ID number. Adjust things like timerperimage and fadetime to your liking. You can also use:

PHP Code:
<fadetime>fadetime_Fanart</fadetime

To use the skin's global default or adjust that global value in includes.xml:

PHP Code:
<constant name="fadetime_Fanart">300</constant

timeperimage and fadetime are in milliseconds.

Hope that helps.
Reply
#3
Jeroen thank you Smile


Spot on, works like a charm.

I made a mistake in my first post, will correct it when I have some more time.


Thank you again for your help, and thanks for Refocus - it is imho one of the best skins out there Smile
Reply
#4
Thanks, good luck modding Smile
Reply
#5
I dont get it... Dont get it to work
Image
Reply
#6
Sorry for late replay, do not know how i missed it.

If you still need it I could put the skin on one drive so you can download it.

Regards
Reply
#7
Hi guys I am a total noob and I have made my own firestick build I would like to put my own backgrounds on but what them two posts say is a load of gobble-de-gook to me Sad is there a total noob way of doing it? thanks
Reply
#8
(2015-04-29, 14:20)Burke Wrote: Sorry for late replay, do not know how i missed it.

If you still need it I could put the skin on one drive so you can download it.

Regards

dont suppose you could put this up again mate? cheers
Reply

Logout Mark Read Team Forum Stats Members Help
help with custom backgrounds for each main menu item0