Select button control
Jump to navigation
Jump to search
The select button control is used for creating a push button that hides multiple options in XBMC. You can choose the position, size, and look of the button, as well as what it looks like when it's pushed in (option arrows etc.)
When the button is pushed, two arrows pop up allowing you to alter the contents of the button (thus select different options). Used to alter the current View mode in My Videos and My Music.
Example
<control type="selectbutton" id="4">
<description>My first select button control</description>
<posx>80</posx>
<posy>60</posy>
<width>250</width>
<height>200</height>
<visible>true</visible>
<colordiffuse>FFFFFFFF</colordiffuse>
<texturefocus>myfocustexture.png</texturefocus>
<texturenofocus>mynormaltexture.png</texturenofocus>
<texturebg>mybgtexture.png</texturebg>
<textureleft>mylefttexture.png</textureleft>
<textureleftfocus>myleftfocustexture.png</textureleftfocus>
<textureright>myrighttexture.png</textureright>
<texturerightfocus>myrightfocustexture.png</texturerightfocus>
<label>29</label>
<font>font12</font>
<textcolor>FFFFFFFF</textcolor>
<disabledcolor>80FFFFFF</disabledcolor>
<align></align>
<alignY></alignY>
<textoffsetx></textoffsetx>
<textoffsety></textoffsety>
<pulseonselect></pulseonselect>
<onup>2</onup>
<ondown>3</ondown>
<onleft>1</onleft>
<onright>1</onright>
</control>
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.
texturefocus |
Specifies the image file which should be displayed when the button has focus. See here for additional information about textures. |
texturenofocus | Specifies the image file which should be displayed when the button does not have focus. |
texturebg | This texture is rendered in the background, replacing the texturefocus and texturenofocus textures, when the button is pushed in. |
textureleft | The texture of the left arrow item when it's not focused. Displayed at the left of the button when it is selected. |
textureleftfocus | The texture of the left arrow item when it's focused. Displayed at the left of the button when it is selected. |
textureright | The texture of the right arrow item when it's not focused. Displayed at the right of the button when it is selected. |
texturerightfocus | The texture of the right arrow item when it's focused. Displayed at the right of the button when it is selected. |
label | The label used on the button. It can be a link into strings.xml, or an actual text label. |
font | Font used for the button label. From fonts.xml. |
textcolor | Color used for displaying the button label. In AARRGGBB hex format, or a name from the colour theme. |
disabledcolor | Color used for the button label if the button is disabled. In AARRGGBB hex format, or a name from the colour theme. |
shadowcolor | Specifies the color of the drop shadow on the text. In AARRGGBB hex format, or a name from the colour theme. |
align | Label horizontal alignment on the button. Defaults to left, can also be center or right. |
aligny | Label vertical alignment on the button. Defaults to top, can also be center. |
textoffsetx | Amount to offset the label from the left (or right) edge of the button when using left or right alignment. |
textoffsety | Amount to offset the label from the top edge of the button when using top alignment. |