LavishGUI:slider (Element Type)

From Lavish Software Wiki
Revision as of 23:27, 15 December 2005 by Beefalo (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

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