LavishGUI:gauge (Element Type)

From Lavish Software Wiki
Jump to navigation Jump to search

Introduction

What is a Gauge?

A gauge is a box that gets filled based on a value compared to its range. lguigauge (Data Type) is used to provide access via LavishScript.

Using Gauges

Gauges are descendants of the base element type. Any attributes of the base element type may be applied in addition to the gauge-specific properties described below. Any gauge that is a child of another gauge will appear inside the filler of the parent gauge, and its value will be modulated from its parent gauge's value on its own range. In other words, if the parent gauge has a value of 11 and is on a range of 100, and the child gauge is on a range of 10, the child's value will be 11%10, or 1. This can be used to make any number of nested gauges showing a "zoomed" portion of the original.

Gauge-Specific Properties

  • Border
Size of border around the element (inclusive)
  • Filler
The gauge "filler". The filler has its own properties as listed below
  • Range
Range of possible values for this gauge (0 to this number, inclusive)
  • Texture
Background texture
  • Vertical
Causes the gauge to flow from bottom to top, rather than left to right

Filler

  • Texture
Background texture

Examples

See Also