Addon Settings - User Defined List

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
DecK Offline
Senior Member
Posts: 135
Joined: Nov 2008
Reputation: 4
Location: Round Rock, TX
Post: #1
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
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,181
Joined: Oct 2003
Reputation: 176
Post: #2
No, you can't currently do that sort of thing without a bunch of ugliness and a defined upper limit.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote