Ranges Control: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "The ranges control is used for showing multiple range UI elements on the same control. It is used in Kodi, for example, to show the intervals of a cutlist (EDL) or chapters in...")
 
No edit summary
Line 1: Line 1:
<section begin="main content" />
The ranges control is used for showing multiple range UI elements on the same control. It is used in Kodi, for example, to show the intervals of a cutlist (EDL) or chapters in the video seekbar. You can choose the position, size and look and feel of the control.  
The ranges control is used for showing multiple range UI elements on the same control. It is used in Kodi, for example, to show the intervals of a cutlist (EDL) or chapters in the video seekbar. You can choose the position, size and look and feel of the control.  


Line 41: Line 42:
| Specifies the information the range control holds. It expects an infolabel that returns a string in CSV format: e.g. "start1,end1,start2,end2,...". Tokens must have values in the range from 0.0 to 100.0. end token must be less or equal than start token. Examples of currently supported infolabels are <code>Player.CutList</code> and <code>Player.Chapters</code> which can be found at the specific infolabels-section: [[InfoLabels#Player_labels | Player labels]]
| Specifies the information the range control holds. It expects an infolabel that returns a string in CSV format: e.g. "start1,end1,start2,end2,...". Tokens must have values in the range from 0.0 to 100.0. end token must be less or equal than start token. Examples of currently supported infolabels are <code>Player.CutList</code> and <code>Player.Chapters</code> which can be found at the specific infolabels-section: [[InfoLabels#Player_labels | Player labels]]
|}
|}
 
<section end="main content" />
== See also ==
== See also ==
'''Development:'''
'''Development:'''

Revision as of 01:13, 10 January 2021

The ranges control is used for showing multiple range UI elements on the same control. It is used in Kodi, for example, to show the intervals of a cutlist (EDL) or chapters in the video seekbar. You can choose the position, size and look and feel of the control.

Example

<control type="ranges">
    <left>0</left>
    <top>70</top>
    <width>100%</width>
    <height>8</height>
    <texturebg border="3" colordiffuse="00FFFFFF">colors/white50.png</texturebg>
    <lefttexture>colors/white.png</lefttexture>
    <midtexture colordiffuse="FFFF0000">colors/white.png</midtexture>
    <righttexture>colors/white.png</righttexture>
    <info>Player.Cutlist</info>
</control>

Available tags

Available tags

In addition to the Default Control Tags the following tags are available. Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

Tag Description
texturebg The background texture for the range control.
lefttexture The texture used in the left hand side of the range
midtexture The texture used for the mid section of the range
righttexture The texture used in the right hand side of the range
info Specifies the information the range control holds. It expects an infolabel that returns a string in CSV format: e.g. "start1,end1,start2,end2,...". Tokens must have values in the range from 0.0 to 100.0. end token must be less or equal than start token. Examples of currently supported infolabels are Player.CutList and Player.Chapters which can be found at the specific infolabels-section: Player labels

See also

Development: