User talk:Ronie: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
 
(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

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>

settings

<settings version="1">

version

section

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

id

label

help

category

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

id

label

help

access

requirement

visible

group

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

id

label

setting

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

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