Lysa.ui  0.0
Lysa 3D Engine
Slider Class Referenceabstract

Detailed Description

A value selected by dragging a grip along a track. Fires OnValueChange.

Inherits from: ValueSelect

Lua full name: lysa.ui.Slider

Public Member Functions

nil set_resources (res_track: string, res_fill: string, res_grip: string)
 Reloads the visual style: res_track = track, res_fill = filled part, res_grip = grip. More...
 

Properties

integer slider_type
 The orientation of this slider (see lysa.ui.SliderType). (read-only)
 
number grip_size
 Size in virtual screen units of the draggable grip.
 
number track_size
 Thickness in virtual screen units of the track the grip slides on.
 
Widget track
 The widget drawing the track. (read-only)
 
Widget fill
 The widget drawing the filled part of the track. (read-only)
 
Widget grip
 The draggable grip widget. (read-only)
 

Member Function Documentation

nil set_resources ( string  res_track,
string  res_fill,
string  res_grip)

Reloads the visual style: res_track = track, res_fill = filled part, res_grip = grip.

Parameters
res_trackstring
res_fillstring
res_gripstring

Property Documentation

integer slider_type

The orientation of this slider (see lysa.ui.SliderType). (read-only)

number grip_size

Size in virtual screen units of the draggable grip.

number track_size

Thickness in virtual screen units of the track the grip slides on.

Widget track

The widget drawing the track. (read-only)

Widget fill

The widget drawing the filled part of the track. (read-only)

Widget grip

The draggable grip widget. (read-only)