Posts: 56
Joined: Jul 2015
Reputation:
0
2015-08-05, 20:17
(This post was last modified: 2015-08-05, 20:22 by jgauthier.)
I am working on an addon and want to add custom windows. I am able to get these to work when I put the XML files in the skin's folder. But I don't want to. I want them contained in the addon folder structure.
I can't figure out how this is done. I know it's not loading, because when I try to ActivateWindow, it cannot be found.
Thanks!
Posts: 15,264
Joined: Jan 2009
Reputation:
728
ronie
Team-Kodi Member
Posts: 15,264
plugins can not use the WindowXML class.
if you want to provide custom windows with your addon, you need to write a script, not a plugin.
Posts: 15,264
Joined: Jan 2009
Reputation:
728
ronie
Team-Kodi Member
Posts: 15,264
please upload your addon somewhere so we can have a look.
Posts: 15,264
Joined: Jan 2009
Reputation:
728
ronie
Team-Kodi Member
Posts: 15,264
as it turns out (i had to check the kodi source-code to figure this one out),
you can not use '16x10' as a folder name.
kodi only accepts a limited number of predefined resolutions.
you should either use '720p' or '1080i'.
Posts: 56
Joined: Jul 2015
Reputation:
0
huh. I'll be damned. I'll change my folder structure. Thanks.
My target resolution will be 1280x800 (which is 16:10), but I can play along to make it work.
Thanks!
Posts: 15,264
Joined: Jan 2009
Reputation:
728
ronie
Team-Kodi Member
Posts: 15,264
you should code your window in 1280x720px.
kodi will handle the scaling to 1280x800.
in case you run a true 16x10 skin, you can additionally add a 16x10 version of your addon window to the skin.