Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Slider Control

Used for a volume slider.

The slider control is used for things where a sliding bar best represents the operation at hand (such as a volume control or seek control). You can choose the position, size, and look of the slider control.


Example

<control type="slider" id="17">
<description>My first slider control</description>
<posx>80</posx>
<posy>60</posy>
<width>250</width>
<height>30</height>
<visible>true</visible>
<texturesliderbar>mybackgroundtexture.png</texturesliderbar>
<texturesliderbardisabled>mydisabledbackgroundtexture.png</texturesliderbardisabled>
<textureslidernib>mydowntexture.png</textureslidernib>
<textureslidernibfocus>mydownfocustexture.png</textureslidernibfocus>
<textureslidernibdisabled>mydisablednibtexture.png</textureslidernibdisabled>
<info></info>
<action></action>
<controloffsetx></controloffsetx>
<controloffsety></controloffsety>
<pulseonselect></pulseonselect>
<orientation>vertical</orientation>
<onup>2</onup>
<ondown>3</ondown>
<onleft>1</onleft>
<onright>1</onright>
</control>
const char const uint8_t size_t unsigned int unsigned int * height
Definition kodi-dev-kit/include/kodi/c-api/addon-instance/ImageDecoder.h:417
const char struct KODI_ADDON_IMAGEDECODER_INFO_TAG * info
Definition kodi-dev-kit/include/kodi/c-api/addon-instance/ImageDecoder.h:410
const char const uint8_t size_t unsigned int * width
Definition kodi-dev-kit/include/kodi/c-api/addon-instance/ImageDecoder.h:416

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
texturesliderbar Specifies the image file which should be displayed in the background of the slider control. See here for additional information about textures.
texturesliderbardisabled Specifies the image file which should be displayed in the background of the slider control when it is disabled.
textureslidernib Specifies the image file which should be displayed for the slider nib.
textureslidernibfocus Specifies the image file which should be displayed for the slider nib when it has focus.
textureslidernibdisabled Specifies the image file which should be displayed for the slider nib when it is disabled.
controloffsetx Amount to offset the slider background texture from the left edge of the control. Only useful if a value is being rendered as well (ie in int or float mode).
controloffsety Amount to offset the slider background texture from the top edge of the control.
info Specifies the information that the slider controls. See here for more information.
orientation Specifies whether this scrollbar is horizontal or vertical. Defaults to vertical.
action Can be volume to adjust the volume, seek to change the seek position, pvr.seek for timeshifting in PVR.

Revision History

v18 Skinning engine changes
[Slider Control] Added pvr.seek as possible action tag value (timeshifting in PVR).

See also

Development: