Posts: 34
Joined: Aug 2009
Reputation:
0
In Germany whe say: "Wer lesen kann ist klar im Vorteil". sorry..
cya
dd
Posts: 26,215
Joined: Oct 2003
Reputation:
187
I believe that's what the enum does - it returns the index rather than the value. If you want the value you should know it anyway, right (after all, you supplied the values). For consecutive numbers with a min and a max you can probably do it without the enum at all, right? The enum stuff is designed for non-consecutive numbers.
Cheers,
Jonathan
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
<setting id="archiveDay" type="labelenum"
Posts: 124
Joined: May 2009
Reputation:
1
Would it be possible to create a slider option? With min, max and step size?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
possible, yes, available, no.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
i already submitted a ticket for this along time ago. among others.
spiff or anybody check out that settings cleanup ticket. a comment would have been nice.
Posts: 278
Joined: Nov 2009
Reputation:
1
2009-12-27, 05:36
(This post was last modified: 2009-12-27, 06:49 by D0nR0s4.)
Hi, just saw the possibility for the settings.xml and it works like a charm. Only thing that I would like/need for my script, is the possibility to select a hard or cd/dvd drive.
I mainly need the letter(on Windows) of the dvd drive from which I get the state with "getDVDState". I didn't find anything about this so I thought I could use a settings entry but I found no chance to select the dvd drive with the folder or file setting types.
I hope someone can help me,
Greetings,
D0nR0sa
Edit: Sorry, problem was an error in xbmc that prevented me from accessing the dvd drive
Posts: 178
Joined: May 2010
Reputation:
0
Spaggi
Senior Member
Posts: 178
Works, thanks alot!
Another issue: When I use fileenum, I cannot find .m3u playlist files. Txt files work well.
Posts: 707
Joined: Jul 2004
Reputation:
6
Hello !
three questions :
1 - Any new infos where we can get help on all available settings, how they works, what are the options and their possible values... ?
2 - It looks like bool setting can't get the option 'visible' ... Why ?
3 - I used the setting type 'action' but the default value, which is the command line (RunPlugin(....) ) is showing next to the label. Any way to hide it ?
(I'm using XBMC 9.11 r26017)
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
1. in guidialogaddonsettings.cpp (i think)
2. it should, maybe a bug
3. put the action in action="RunScript()" leave default blank. default=""