Kodi Development  20.0
for Binary and Script based Add-Ons
Subclass - ControlSpin

Detailed Description

Used for cycling up/down controls.

Offers classes and functions that manipulate the add-on gui controls.


Class: ControlSpin()

Code based skin access.

The spin control is used for when a list of options can be chosen (such as a page up/down control). You can choose the position, size, and look of the spin control.

Note
This class include also all calls from Control
Warning
Not working yet. You can't create this object, it is returned by objects like ControlTextBox and ControlList.

Function Documentation

◆ setTextures()

setTextures (   ...)

Function: setTextures(up, down, upFocus, downFocus)


Sets textures for this control.

Texture are image files that are used for example in the skin

Warning
Not working yet.
Parameters
uplabel - for the up arrow when it doesn't have focus.
downlabel - for the down button when it is not focused.
upFocuslabel - for the up button when it has focus.
downFocuslabel - for the down button when it has focus.
upDisabledlabel - for the up arrow when the button is disabled.
downDisabledlabel - for the up arrow when the button is disabled.

Example:

...
# setTextures(up, down, upFocus, downFocus, upDisabled, downDisabled)
...