2016-02-19, 20:51
(2016-02-10, 20:30)marcelveldt Wrote: Great idea... but...
Python scripts are actually not supposed to write to skin xml files.
Skin shortcuts is the one big exception addon that may do this while still beiing in the official Kodi repo.
I'm open to this suggestion to have one more "generated" include XML file in which skinhelper may write includes but only if ronie agrees with it.
That said. I'm not sure this will actually work because you'll need a reloadskin if the xml is updated dynamically by the script.
Or maybe, just maybe it will work with the new conditional include for files that was added in Isengard or Jarvis.
Maybe just test by adding a condition file include in one your windows (not in the generic includes.xml), update the file, not reload the skin and see what happens ?
Back on this. Why would you condition include the file outside the main include ? Didn't test I admit but I saw more a pre-formated file like script.skin.helper-constants.xml included by default in the main include file. So the script can check the constant name (already set by default by Skinner) and overrides it with user entry (keyboard or whatever). If it's set in the skin settings window, opening the calling window will refresh the include value. This only doesn't work if you set the value in the calling window, then, that's right, needs a reloadskin (staying in the same window will always keep the included value in cache).