Auto Populating the Videos Control List
#1
Hello,

I am trying to create a minimal skin which lists the appropriate items under a given window. I have found that the following works in MyVideoNav.xml

http://ix.io/1yUZ

However if I change id to anything other than 50, the list does not automatically get populated. I have tried to find documentation which explains this but have not been able to find any. Is my assumption that the code automatically populates the control based on its ID correct? If so, where can i find a list of ids which indicate how Kodi will populate my tags. My understanding is that control ids can be arbitrary as long as they are unique, however if I want Kodi to automatically populate items this does not appear to hold (which makes sense) but I cannot find verification of this.
Reply
#2
*oops

Please ignore the earlier link, this is the one I intended to post. The only difference is the removal of the <content> tag which I was using for testing.

http://ix.io/1yV0
Reply
#3
as far as i know, it is mandatory to have a container with id="50" in the library windows.

but you can add additional 'views' with other container id's as well though, just as long as there is one with id="50".

also, you'll want to add a <views></views> definition to your window.

https://kodi.wiki/view/Window_Structure
https://kodi.wiki/view/HOW-TO:Add_a_new_...o_the_skin
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
Thanks, is this documented anywhere? It doesn't seem to be on the wiki pages you liked to. Are there any other undocumented magic numbers? Is there a reference somewhere? I am curious to know how new skin developers get started, especially those without a technical background. I am fortunate enough to have one but even if I find skinning difficult. I am surprised there is no dedicated tool. I use vim so I haven't tried the notepad plugin but I can't imagine it can be so good as to make the process *that* much easier. There doesn't seem to be a lack of quality skins which indicates that I am either missing a key resource or skinners are just very determined people Tongue.
Reply
#5
https://kodi.wiki/index.php?title=Window_Structure
Reply
#6
That link doesn't appear to mention what the magic controls ids (like 50) are or what they do. It briefly mentions something about 'views' (which I can't seem to find a documented definition of)  and otherwise just states what is already known (that windows have unique names and corresponding XML files).
Reply
#7
(2019-02-24, 06:15)marcus1901 Wrote: Thanks, is this documented anywhere? It doesn't seem to be on the wiki pages you liked to. Are there any other undocumented magic numbers? Is there a reference somewhere? I am curious to know how new skin developers get started, especially those without a technical background. I am fortunate enough to have one but even if I find skinning difficult. I am surprised there is no dedicated tool. I use vim so I haven't tried the notepad plugin but I can't imagine it can be so good as to make the process *that* much easier. There doesn't seem to be a lack of quality skins which indicates that I am either missing a key resource or skinners are just very determined people Tongue.

Some of the Kodi Windows have GUI Elements with dedicated Ids. Which window provides which elements with what Ids can be read here:

https://kodi.wiki/view/Skinning_Manual#A...n_Controls
Reply
#8
there's not much documented in the wiki regarding view id's, but for the rest, this list should be pretty complete:
https://kodi.wiki/view/List_of_Built_In_Controls
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Auto Populating the Videos Control List0