Difference between revisions of "User talk:Ronie"

From Official Kodi Wiki
Jump to: navigation, search
(Tip for site announcements: new section)
(section)
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Welcome to ''XBMC''!'''
+
WIP - settings.xml
We hope you will contribute much and well.
 
You will probably want to read the [[Help:Contents|help pages]].
 
Again, welcome and have fun! [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 18:11, 21 July 2013 (EDT)
 
  
== Tip for site announcements ==
+
=settings.xml=
 +
<syntaxhighlight lang="xml" enclose="div">
 +
<?xml version="1.0" encoding="utf-8" ?>
 +
<settings>
 +
<section>
 +
<category>
 +
<group>
 +
<setting></setting>
 +
<setting></setting>
 +
</group>
 +
<group>
 +
<setting></setting>
 +
</group>
 +
</category>
 +
</section>
 +
</settings>
 +
</syntaxhighlight>
  
Saw the notice on the main page and wanted to let you know that you can also use [[MediaWiki:Sitenotice]] to display messages at the top of all wiki pages. Just re-blank when you want to clear it. Cheers. -- [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 04:30, 2 October 2017 (EDT)
+
=settings=
 +
<syntaxhighlight lang="xml" enclose="div">
 +
<settings version="1">
 +
</syntaxhighlight>
 +
 
 +
==version==
 +
 
 +
=section=
 +
<syntaxhighlight lang="xml" enclose="div">
 +
<section id="my.addon.id" label="31001" help="31002">
 +
</syntaxhighlight>
 +
 
 +
==id==
 +
 
 +
==label==
 +
 
 +
==help==
 +
 
 +
=category=
 +
<syntaxhighlight lang="xml" enclose="div">
 +
<category id="videoplayer" label="31003" help="31004">
 +
</syntaxhighlight>
 +
 
 +
==id==
 +
 
 +
==label==
 +
 
 +
==help==
 +
 
 +
===access===
 +
===requirement===
 +
===visible===
 +
 
 +
=group=
 +
<syntaxhighlight lang="xml" enclose="div">
 +
<group id="1" label="31005">
 +
</syntaxhighlight>
 +
 
 +
==id==
 +
 
 +
==label==
 +
 
 +
=setting=
 +
<syntaxhighlight lang="xml" enclose="div">
 +
<setting id="delay" type="integer" label="31006" help="31007">
 +
</syntaxhighlight>
 +
 
 +
==id==
 +
 
 +
==label==
 +
 
 +
==help==
 +
 
 +
==parent==
 +
 
 +
==type==
 +
 
 +
===boolean===
 +
===string===
 +
===integer===
 +
===number===
 +
===action===
 +
===list[string]===
 +
===list[interger]===
 +
===list[?do other types exist?]===
 +
==subsections==
 +
===visible===
 +
===level===
 +
 
 +
* 0 = Basic
 +
* 1 = Standard
 +
* 2 = Advanced
 +
* 3 = Expert
 +
* 4 = Internal
 +
 
 +
===default===
 +
===constraints===
 +
====allowempty====
 +
====minimum====
 +
====step====
 +
====maximum====
 +
====options====
 +
=====option=====
 +
====delimiter====
 +
====minimumitems====
 +
====maximumitems====
 +
====addontype====
 +
 
 +
 
 +
===dependencies===
 +
====dependency====
 +
 
 +
=====type=====
 +
* enable
 +
* visible
 +
* update
 +
 
 +
=====setting=====
 +
=====operator=====
 +
======is======
 +
======lt======
 +
======lessthan======
 +
======gt======
 +
======greaterthan======
 +
======contains======
 +
======!======
 +
 
 +
 
 +
=====and=====
 +
=====or=====
 +
======condition======
 +
=======on=======
 +
* setting
 +
* property
 +
 
 +
=======name=======
 +
=======setting=======
 +
=======condition=======
 +
 
 +
===data===
 +
===updates===
 +
 
 +
====update====
 +
 
 +
=====change=====
 +
=====rename=====
 +
 
 +
=control=
 +
 
 +
==type==
 +
===button===
 +
===toggle===
 +
===spinner===
 +
===edit===
 +
===list===
 +
===slider===
 +
===range===
 +
===title===
 +
===label===
 +
 
 +
==format==
 +
===boolean===
 +
===string===
 +
===integer===
 +
===number===
 +
===ip===
 +
===md5===
 +
===urlencoded===
 +
===path===
 +
===file===
 +
===image===
 +
===addon===
 +
===infolabel===
 +
===action===
 +
===date===
 +
===time===
 +
 
 +
==delayed==
 +
 
 +
 
 +
==subsections==
 +
===heading===
 +
===show===
 +
====more====
 +
===details===
 +
 
 +
===multiselect===
 +
===data===
 +
===hidevalue===
 +
===formatlabel===
 +
===verifynew===
 +
===hidden===
 +
===popup===
 +
 
 +
=todo=
 +
SETTING_XML_ATTR_BEFORE "before" (setting attribute - place setting before)
 +
 
 +
SETTING_XML_ATTR_AFTER "after" (setting attribute - place setting after)
 +
 
 +
SETTING_XML_ELM_CONTROL_FORMATVALUE "value" (control - subnode of formatlabel)
 +
 
 +
SETTING_XML_ATTR_SEPARATOR_POSITION "separatorposition" (control - attribute of control type="title")
 +
* top
 +
* bottom
 +
 
 +
SETTING_XML_ATTR_HIDE_SEPARATOR "hideseparator" (control - attribute of control type="title")
 +
* true
 +
* false

Latest revision as of 23:33, 1 August 2020

WIP - settings.xml

Contents

1 settings.xml

<?xml version="1.0" encoding="utf-8" ?>
<settings>
	<section>
		<category>
			<group>
				<setting></setting>
				<setting></setting>
			</group>
			<group>
				<setting></setting>
			</group>
		</category>
	</section>
</settings>

2 settings

<settings version="1">

2.1 version

3 section

<section id="my.addon.id" label="31001" help="31002">

3.1 id

3.2 label

3.3 help

4 category

<category id="videoplayer" label="31003" help="31004">

4.1 id

4.2 label

4.3 help

4.3.1 access

4.3.2 requirement

4.3.3 visible

5 group

<group id="1" label="31005">

5.1 id

5.2 label

6 setting

<setting id="delay" type="integer" label="31006" help="31007">

6.1 id

6.2 label

6.3 help

6.4 parent

6.5 type

6.5.1 boolean

6.5.2 string

6.5.3 integer

6.5.4 number

6.5.5 action

6.5.6 list[string]

6.5.7 list[interger]

6.5.8 list[?do other types exist?]

6.6 subsections

6.6.1 visible

6.6.2 level

  • 0 = Basic
  • 1 = Standard
  • 2 = Advanced
  • 3 = Expert
  • 4 = Internal

6.6.3 default

6.6.4 constraints

6.6.4.1 allowempty

6.6.4.2 minimum

6.6.4.3 step

6.6.4.4 maximum

6.6.4.5 options

6.6.4.5.1 option

6.6.4.6 delimiter

6.6.4.7 minimumitems

6.6.4.8 maximumitems

6.6.4.9 addontype

6.6.5 dependencies

6.6.5.1 dependency

6.6.5.1.1 type
  • enable
  • visible
  • update
6.6.5.1.2 setting
6.6.5.1.3 operator
6.6.5.1.3.1 is
6.6.5.1.3.2 lt
6.6.5.1.3.3 lessthan
6.6.5.1.3.4 gt
6.6.5.1.3.5 greaterthan
6.6.5.1.3.6 contains
6.6.5.1.3.7 !
6.6.5.1.4 and
6.6.5.1.5 or
6.6.5.1.5.1 condition
6.6.5.1.5.2 =on=
  • setting
  • property
6.6.5.1.5.3 =name=
6.6.5.1.5.4 =setting=
6.6.5.1.5.5 =condition=

6.6.6 data

6.6.7 updates

6.6.7.1 update

6.6.7.1.1 change
6.6.7.1.2 rename

7 control

7.1 type

7.1.1 button

7.1.2 toggle

7.1.3 spinner

7.1.4 edit

7.1.5 list

7.1.6 slider

7.1.7 range

7.1.8 title

7.1.9 label

7.2 format

7.2.1 boolean

7.2.2 string

7.2.3 integer

7.2.4 number

7.2.5 ip

7.2.6 md5

7.2.7 urlencoded

7.2.8 path

7.2.9 file

7.2.10 image

7.2.11 addon

7.2.12 infolabel

7.2.13 action

7.2.14 date

7.2.15 time

7.3 delayed

7.4 subsections

7.4.1 heading

7.4.2 show

7.4.2.1 more

7.4.3 details

7.4.4 multiselect

7.4.5 data

7.4.6 hidevalue

7.4.7 formatlabel

7.4.8 verifynew

7.4.9 hidden

7.4.10 popup

8 todo

SETTING_XML_ATTR_BEFORE "before" (setting attribute - place setting before)

SETTING_XML_ATTR_AFTER "after" (setting attribute - place setting after)

SETTING_XML_ELM_CONTROL_FORMATVALUE "value" (control - subnode of formatlabel)

SETTING_XML_ATTR_SEPARATOR_POSITION "separatorposition" (control - attribute of control type="title")

  • top
  • bottom

SETTING_XML_ATTR_HIDE_SEPARATOR "hideseparator" (control - attribute of control type="title")

  • true
  • false