Difference between revisions of "LavishGUI:slider (Element Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 
=== What is a Slider? ===
 
=== What is a Slider? ===
 
+
A slider is a scaling bar used for easy changing of things like volume control or maximum viewable range.
 
== Using Sliders ==
 
== Using Sliders ==
 
Sliders are descendants of the [[LavishGUI:Elements|base]] element type.  Any attributes of the [[LavishGUI:Elements|base]] element type may be applied in addition to the slider-specific properties described below.
 
Sliders are descendants of the [[LavishGUI:Elements|base]] element type.  Any attributes of the [[LavishGUI:Elements|base]] element type may be applied in addition to the slider-specific properties described below.
  
 
=== Slider-Specific Properties ===
 
=== Slider-Specific Properties ===
 
+
*'''Border'''
 +
: Size of border around the element (inclusive)
 +
*'''HandleTexture'''
 +
: Texture for use with the slider "handle"
 +
*'''Range'''
 +
: Range of possible values for this slider (0 to this number, inclusive)
 +
*'''Texture'''
 +
: Background texture
 +
*'''Vertical'''
 +
: Causes the slider to flow from bottom to top, rather than left to right
 
== Examples ==
 
== Examples ==
 
+
===Example Code===
 +
<slider Name='Zoom'>
 +
<X>80</X>
 +
<Y>0</Y>
 +
          <Border>0</Border>
 +
<Width>50</Width>
 +
<Height>10</Height>
 +
<AutoTooltip>Zoom level</AutoTooltip>
 +
</slider>
 
== See Also ==
 
== See Also ==
 
* [[LavishGUI]]
 
* [[LavishGUI]]
 
* [[LavishGUI:Elements|Elements]]
 
* [[LavishGUI:Elements|Elements]]
 
[[Category:LavishGUI]]
 
[[Category:LavishGUI]]

Revision as of 06:05, 20 September 2005

Introduction

What is a Slider?

A slider is a scaling bar used for easy changing of things like volume control or maximum viewable range.

Using Sliders

Sliders are descendants of the base element type. Any attributes of the base element type may be applied in addition to the slider-specific properties described below.

Slider-Specific Properties

  • Border
Size of border around the element (inclusive)
  • HandleTexture
Texture for use with the slider "handle"
  • Range
Range of possible values for this slider (0 to this number, inclusive)
  • Texture
Background texture
  • Vertical
Causes the slider to flow from bottom to top, rather than left to right

Examples

Example Code

	<slider Name='Zoom'>
		<X>80</X>
		<Y>0</Y>
         	<Border>0</Border>
		<Width>50</Width>
		<Height>10</Height>
		<AutoTooltip>Zoom level</AutoTooltip>
	</slider>

See Also