Slider Control: Difference between revisions
Jump to navigation
Jump to search
>DonJ No edit summary |
>Jmarshall No edit summary |
||
Line 2: | Line 2: | ||
===Example=== | ===Example=== | ||
<xml> | <xml> | ||
<control> | <control type="slider" id="17"> | ||
<description>My first slider control</description> | <description>My first slider control</description> | ||
<posx>80</posx> | <posx>80</posx> | ||
<posy>60</posy> | <posy>60</posy> | ||
Line 25: | Line 23: | ||
</xml> | </xml> | ||
===Available Tags=== | ===Available Tags=== | ||
Note that each tag is '''lower case | 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. | ||
{| class="dtable" | {| class="dtable" | ||
|- class="userrow" | |- class="userrow" | ||
| class="usercell" | '''texturebg''' | | class="usercell" | '''texturebg''' | ||
| class="usercell" | | | class="usercell" | | ||
Specifies the image file which should be displayed in the background of the slider control. | Specifies the image file which should be displayed in the background of the slider control. [[Texture Attributes|See here for additional information about textures.]] | ||
|- class="userrow" | |- class="userrow" | ||
| class="usercell" | '''textureslidernib''' | | class="usercell" | '''textureslidernib''' | ||
Line 72: | Line 41: | ||
| class="usercell" | '''controloffsety''' | | class="usercell" | '''controloffsety''' | ||
| class="usercell" | Amount to offset the slider background texture from the top edge of the control. | | class="usercell" | Amount to offset the slider background texture from the top edge of the control. | ||
|- class="userrow" | |- class="userrow" | ||
| class="usercell" | '''info''' | | class="usercell" | '''info''' | ||
| class="usercell" | | | class="usercell" | | ||
Specifies the information that the slider controls. [[InfoLabels|See here for more information.]] | Specifies the information that the slider controls. [[InfoLabels|See here for more information.]] | ||
|} | |} | ||
[[category:Skin Development]] | [[category:Skin Development]] |
Revision as of 07:04, 24 July 2007
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
<xml> <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> <texturebg>mybackgroundtexture.png</texturebg> <textureslidernib>mydowntexture.png</textureslidernib> <textureslidernibfocus>mydownfocustexture.png</textureslidernibfocus> <info></info> <controloffsetx></controloffsetx> <controloffsety></controloffsety> <pulseonselect></pulseonselect> <onup>2</onup> <ondown>3</ondown> <onleft>1</onleft> <onright>1</onright>
</control> </xml>
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.
texturebg |
Specifies the image file which should be displayed in the background of the slider control. See here for additional information about textures. |
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. |
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. |