Kodi Community Forum
Addon Settings - User Defined List - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Addon Settings - User Defined List (/showthread.php?tid=126323)



Addon Settings - User Defined List - DecK - 2012-03-23

All
I'm just dipping my toe in the great ocean of addon development, so please be gentle...

In my settings, I would like the user to be able to add multiple instances of a setting. Is this even possible? I've looked both here and in the wiki and cannot find anything.

For each instance in the 1..N list, the user would need to be able to set the same set of properties. Adding Video Sources would be a good analogy here, where the user can add one, set its properties and save it. They can also edit existing records.

The widget that I am trying to save 1..N copies of has the following structure.

Code:
<widget>
    Name="String Value"
    Score="Integer Value"
    Enabled="Boolean Value"
</widget>

Any pointer would be appreciated.

Thanks
Declan


RE: Addon Settings - User Defined List - jmarshall - 2012-03-23

No, you can't currently do that sort of thing without a bunch of ugliness and a defined upper limit.