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.
+
A slider is a scaling bar used for easy changing of things like volume control or maximum viewable range. [[LavishGUI:lguislider (Data Type)|lguislider (Data Type)]] is used to provide access via LavishScript.
 
== 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.
Line 32: Line 32:
 
  </slider>
 
  </slider>
 
== See Also ==
 
== See Also ==
* [[LavishGUI:lguislider (Data Type)|lguislider]]
+
* [[LavishGUI:lguislider (Data Type)|lguislider (Data Type)]]
 
* [[LavishGUI]]
 
* [[LavishGUI]]
 
* [[LavishGUI:Elements|Elements]]
 
* [[LavishGUI:Elements|Elements]]
 
[[Category:LavishGUI]]
 
[[Category:LavishGUI]]

Latest revision as of 23:27, 15 December 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. lguislider (Data Type) is used to provide access via LavishScript.

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

Embedded Script

  • OnChange
Executes when the value of the slider changes


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