How to use a custom window with a custom addon? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: How to use a custom window with a custom addon? (/showthread.php?tid=212658) |
How to use a custom window with a custom addon? - catkinso - 2014-12-28 I have created an improved network manager addon which generates a listing of available wifi connections, Currently it is using the container 53 view. I would like it to utilize a custom window I have created custom_network.xml Is there a way to have the addon utilize a window I have previously created (custom_network.xml) I cannot find any reference of how to point the addon to this when generating a listing (listing code below) The code is envoked via the default.py script within the addon directory. PHP Code: def GENERATE_LISTING(): Thanks RE: How to use a custom window with a custom addon? - ronie - 2014-12-28 that's not possible. the addon is written as a plugin and plugins can't use their own xml window. they depend on whatever views are already available in the skin. only script type addons can ship with their own custom window. RE: How to use a custom window with a custom addon? - catkinso - 2014-12-28 Hi Ronie, Thanks for the response, that is a pain. Forgive my ignorance, can you point me towards the info on this? I can't locate anything specific. (Namely on how to generate a script based addon) RE: How to use a custom window with a custom addon? - phil65 - 2014-12-28 you could "embed" your plugin content into any custom xml by using <content>plugin://..</content> (Sortmethods, contextmenu and probably some other stuff wont work this way though) RE: How to use a custom window with a custom addon? - catkinso - 2014-12-28 OK will give that a go. Thanks for the help. Having just spent several hours trying to get xbmcgui add control methods to work, I am not going to re-engineer all this work. if this works great otherwise, sod it |