2018-01-30, 06:13
My addon utilizes a custom window , which just brings up a 'more info' type page that users interact with.
Some skinners have requested the ability to change this window so it matches their skin, but I'm having trouble figuring out how to do this, if this is even possible.
My general thought was in my addon have code that searches to see if a skinner has put a specific named xml file into their skins folder. If the file exists, then use that one, if it doesn't then use the default.
The code works, except for the part where I try and call the IARL.xml file in the skins directory. In testing I find that the xbmcgui.WindowXMLDialog class doesn't let me point to 'path_to_addons/skin.xyz/720p/IARL.xml', it always appends 'resources/skins/Default/' into the path.
Is what I'm attempting to do possible? Any help would be greatly appreciated.
Some skinners have requested the ability to change this window so it matches their skin, but I'm having trouble figuring out how to do this, if this is even possible.
My general thought was in my addon have code that searches to see if a skinner has put a specific named xml file into their skins folder. If the file exists, then use that one, if it doesn't then use the default.
python:
If path_to_addons/skin.xyz/720p/IARL.xml exists:
use IARL.xml in skin folder
else:
use IARLs default.xml in addon folder
The code works, except for the part where I try and call the IARL.xml file in the skins directory. In testing I find that the xbmcgui.WindowXMLDialog class doesn't let me point to 'path_to_addons/skin.xyz/720p/IARL.xml', it always appends 'resources/skins/Default/' into the path.
Is what I'm attempting to do possible? Any help would be greatly appreciated.