v19 Settings Levels
#1
I was playing around with some addon settings today in a nightly build and noticed within an Addon there is now a settings level toggle. I checked and this didn't exist in Leia. Does this mean addon authors can now set certain categories or specific settings within the settings.xml file to be hidden or visible based on the level? I played around with this a bit and couldn't figure out anything. Changing the levels while in an addon always showed the same (except Basic, that showed none). 

Just wondering if this is a new feature for V19 or is meant to be a placeholder for later.
Reply
#2
since leia, addons can use the same settings format as the kodi settings use.
https://github.com/xbmc/xbmc/pull/12125

example:
xml:

<setting help="32099" id="movies" label="32001" type="boolean">
    <level>1</level>
    <default>true</default>
    <control type="toggle"/>
</setting>


the settings level toggle in the addon settings dialog was added in kodi matrix:
https://github.com/xbmc/xbmc/pull/15796
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
#3
That's pretty cool. Thanks for the info, I'll have to play around with it.
Reply
#4
I've been playing around with the using the new settings. I found a few addons that have transitioned and also looked at the settings files in the Kodi main repo for an idea of the syntax. There are a lot of options. 

Is there any place these are documented? I tried looking on the wiki but couldn't find anything. For the most part I can recreate what I need but I'm having trouble with a few items (like a basic text input of all things) and how to handle buttons that launch other scripts. Overall I can see how this will be way more powerful than the old system.
Reply
#5
nope, sadly there aren't any docs available for the 'new' settings system.
i'll likely add the info i have (which is far from complete) to the wiki soon.
also, i'm working on a settings conversion script which will help addon devs to convert their settings.xml file to the new format.

text input:
https://gitlab.com/ronie/script.cu.lrcly...l#L173-184

launch another addon:
https://gitlab.com/ronie/script.cu.lrcly...l#L208-212

launch another addon and retrieve it's return value:
https://gitlab.com/ronie/weather.yahoo/b....xml#L6-15
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
Settings Levels0