2016-04-20, 22:59
(2016-04-20, 01:14)mikesilvo164 Wrote:(2016-04-19, 23:38)oldgit9 Wrote: ***another main menu background question***This skin is not "build" friendly. The include file you mention is not meant to be user modified. It will always be overridden by the skin shortcuts script.
how can we set default backgrounds images for each main menu heading via xml?
i have done a quick search on here and some of the answers have come close to what i want...but no juice. and i believe it's an easy fix (hopefully).
i know you can set the custom background images in the system settings. which is an easy fix. but that is not what i want to do. when i go to install my build on different devices (i have too many & it's growing), i want the custom backgrounds images to work off the bat. and i believe that the only way to achieve this, is to edit some xml code and have the images for each menu title in the "backgrounds" folder.
i have been looking through the xml files and i cant find anything that stands out (item id....). not like other skins, where the code for the background images are usually either in the "include_home.xml" or "include_horizontal_home.xml" file. after doing a search, i found some code in the "script-skinshortcuts-include.xml". i have added the following code to the other "item id's" and it worked for perfect for 1 second and then it disappeared.
Code:<property name="background">/Users/****/Library/Application Support/Kodi/addons/skin.aeon.nox.silvo/backgrounds/default_bg.jpg</property>
<property name="backgroundName">/Users/****/Library/Application Support/Kodi/addons/skin.aeon.nox.silvo/backgrounds/default_bg.jpg</property>
replaced my name with ****
but just like someone else mentioned, when i went back in the "script-skinshortcuts-include.xml", the lines of code that i had entered, has also disappeared. how can we stop this overwriting of the code i've entered, or is there a way we can code the images in another file?
im sorry if this has been asked and answered before. but i've not got the time to read through 316 pages and the search didn't give me any results that helped me. so i had to ask.
There is a way to do what you want but it is not user friendly. The skins used for "builds" usually have hardcoded menus which use skin settings and can be modified the way you want.
Since I myself have limited time to answer everyone with how to modify everything to their liking and also I do not like builds so I usually ignore posts involving them, however I will say this and never speak of it again...
You have two options but there is no support for either:
1) Search the thread for "properties" and one of the top 4 or 5 posts will give you some helpful info.
2) Modify the skins default shortcuts. To do that you can use the incredibly detailed documentation for the skin.shortcuts script.
P.S. That is the last post from me on helping with "builds".
thanks Mike for the reply. i honestly wasn't expecting a reply from you, but thanks for taking the time.
im not classing what i want to do as a "build". im classing it as, "skinning a skin" if that makes any sense to you. basically, slightly changing the look of the skin and not it's guts. that's way above my station.
the only reason why am asking about the background image for each menu title, is to make sure that the skin looks the way i want it to look and to save people from selecting the files for each menu title.
i will do the recommended search and read up on the documentation.
thanks again