kodi
|
**A radio button control (as used for on/off settings). More...
Modules | |
Font alignment flags | |
Flags for alignment. | |
Classes | |
class | XBMCAddon::xbmcgui::ControlRadioButton |
**A radio button control (as used for on/off settings).
**
{ ControlRadioButton(x, y, width, height, label[, focusOnTexture, noFocusOnTexture, focusOffTexture, noFocusOffTexture, focusTexture, noFocusTexture, textOffsetX, textOffsetY, alignment, font, textColor, disabledColor]) }
The radio button control is used for creating push button on/off settings in Kodi. You can choose the position, size, and look of the button, as well as the focused and unfocused radio textures. Used for settings controls.
x | integer - x coordinate of control. | ||||||||||||||||||||||||
y | integer - y coordinate of control. | ||||||||||||||||||||||||
width | integer - width of control. | ||||||||||||||||||||||||
height | integer - height of control. | ||||||||||||||||||||||||
label | string or unicode - text string. | ||||||||||||||||||||||||
focusOnTexture | [opt] string - filename for radio ON focused texture. | ||||||||||||||||||||||||
noFocusOnTexture | [opt] string - filename for radio ON not focused texture. | ||||||||||||||||||||||||
focusOfTexture | [opt] string - filename for radio OFF focused texture. | ||||||||||||||||||||||||
noFocusOffTexture | [opt] string - filename for radio OFF not focused texture. | ||||||||||||||||||||||||
focusTexture | [opt] string - filename for focused button texture. | ||||||||||||||||||||||||
noFocusTexture | [opt] string - filename for not focused button texture. | ||||||||||||||||||||||||
textOffsetX | [opt] integer - horizontal text offset | ||||||||||||||||||||||||
textOffsetY | [opt] integer - vertical text offset | ||||||||||||||||||||||||
alignment | [opt] integer - alignment of label
| ||||||||||||||||||||||||
font | [opt] string - font used for label text. (e.g. 'font13') | ||||||||||||||||||||||||
textColor | [opt] hexstring - color of label when control is enabled. radiobutton's label. (e.g. '0xFFFFFFFF') | ||||||||||||||||||||||||
disabledColor | [opt] hexstring - color of label when control is disabled. (e.g. '0xFFFF3300') |
New function added.
Example: