Difference between revisions of "User talk:Ronie"

From Official Kodi Wiki
Jump to: navigation, search
(delayed)
(section)
 
(23 intermediate revisions by the same user not shown)
Line 28: Line 28:
 
=section=
 
=section=
 
<syntaxhighlight lang="xml" enclose="div">
 
<syntaxhighlight lang="xml" enclose="div">
<section id="addon" label="31001" help="31002">
+
<section id="my.addon.id" label="31001" help="31002">
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 47: Line 47:
  
 
==help==
 
==help==
 +
 +
===access===
 +
===requirement===
 +
===visible===
  
 
=group=
 
=group=
Line 80: Line 84:
 
===list[interger]===
 
===list[interger]===
 
===list[?do other types exist?]===
 
===list[?do other types exist?]===
===reference===
+
==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=
 
=control=
Line 114: Line 176:
 
===time===
 
===time===
  
 +
==delayed==
 +
 +
 +
==subsections==
 +
===heading===
 +
===show===
 +
====more====
 +
===details===
  
==delayed==
+
===multiselect===
 +
===data===
 +
===hidevalue===
 +
===formatlabel===
 +
===verifynew===
 +
===hidden===
 +
===popup===
  
 
=todo=
 
=todo=
#define SETTING_XML_ROOT "settings"
+
SETTING_XML_ATTR_BEFORE "before" (setting attribute - place setting before)
#define SETTING_XML_ROOT_VERSION "version"
+
 
 +
SETTING_XML_ATTR_AFTER "after" (setting attribute - place setting after)
  
#define SETTING_XML_ELM_SECTION "section"
+
SETTING_XML_ELM_CONTROL_FORMATVALUE "value" (control - subnode of formatlabel)
#define SETTING_XML_ELM_CATEGORY "category"
 
#define SETTING_XML_ELM_GROUP "group"
 
#define SETTING_XML_ELM_SETTING "setting"
 
#define SETTING_XML_ELM_VISIBLE "visible"
 
#define SETTING_XML_ELM_REQUIREMENT "requirement"
 
#define SETTING_XML_ELM_CONDITION "condition"
 
#define SETTING_XML_ELM_LEVEL "level"
 
#define SETTING_XML_ELM_DEFAULT "default"
 
#define SETTING_XML_ELM_VALUE "value"
 
#define SETTING_XML_ELM_CONTROL "control"
 
#define SETTING_XML_ELM_CONSTRAINTS "constraints"
 
#define SETTING_XML_ELM_OPTIONS "options"
 
#define SETTING_XML_ELM_OPTION "option"
 
#define SETTING_XML_ELM_MINIMUM "minimum"
 
#define SETTING_XML_ELM_STEP "step"
 
#define SETTING_XML_ELM_MAXIMUM "maximum"
 
#define SETTING_XML_ELM_ALLOWEMPTY "allowempty"
 
#define SETTING_XML_ELM_DEPENDENCIES "dependencies"
 
#define SETTING_XML_ELM_DEPENDENCY "dependency"
 
#define SETTING_XML_ELM_UPDATES "updates"
 
#define SETTING_XML_ELM_UPDATE "update"
 
#define SETTING_XML_ELM_ACCESS "access"
 
#define SETTING_XML_ELM_DELIMITER "delimiter"
 
#define SETTING_XML_ELM_MINIMUM_ITEMS "minimumitems"
 
#define SETTING_XML_ELM_MAXIMUM_ITEMS "maximumitems"
 
#define SETTING_XML_ELM_DATA "data"
 
  
#define SETTING_XML_ATTR_ID "id"
+
SETTING_XML_ATTR_SEPARATOR_POSITION "separatorposition" (control - attribute of control type="title")
#define SETTING_XML_ATTR_LABEL "label"
+
* top
#define SETTING_XML_ATTR_HELP "help"
+
* bottom
#define SETTING_XML_ATTR_TYPE "type"
 
#define SETTING_XML_ATTR_PARENT "parent"
 
#define SETTING_XML_ATTR_FORMAT "format"
 
#define SETTING_XML_ATTR_DELAYED "delayed"
 
#define SETTING_XML_ATTR_ON "on"
 
#define SETTING_XML_ATTR_OPERATOR "operator"
 
#define SETTING_XML_ATTR_NAME "name"
 
#define SETTING_XML_ATTR_SETTING "setting"
 
#define SETTING_XML_ATTR_BEFORE "before"
 
#define SETTING_XML_ATTR_AFTER "after"
 
  
#define SETTING_XML_ELM_CONTROL_FORMATLABEL "formatlabel"
+
SETTING_XML_ATTR_HIDE_SEPARATOR "hideseparator" (control - attribute of control type="title")
#define SETTING_XML_ELM_CONTROL_HIDDEN "hidden"
+
* true
#define SETTING_XML_ELM_CONTROL_VERIFYNEW "verifynew"
+
* false
#define SETTING_XML_ELM_CONTROL_HEADING "heading"
 
#define SETTING_XML_ELM_CONTROL_HIDEVALUE "hidevalue"
 
#define SETTING_XML_ELM_CONTROL_MULTISELECT "multiselect"
 
#define SETTING_XML_ELM_CONTROL_POPUP "popup"
 
#define SETTING_XML_ELM_CONTROL_FORMATVALUE "value"
 
#define SETTING_XML_ATTR_SHOW_MORE "more"
 
#define SETTING_XML_ATTR_SHOW_DETAILS "details"
 
#define SETTING_XML_ATTR_SEPARATOR_POSITION "separatorposition"
 
#define SETTING_XML_ATTR_HIDE_SEPARATOR "hideseparator"
 

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