Lysa.ui  0.0
Lysa 3D Engine
ColorSlider Class Referenceabstract

Detailed Description

A Slider whose track is drawn with a gradient of colors.

Inherits from: Slider

Lua full name: lysa.ui.ColorSlider

Public Member Functions

lysa.float4 color_at (ratio: number)
 Returns the interpolated gradient color at a ratio in [0.0, 1.0]. More...
 
nil set_resources (res_arrow: string)
 Reloads the visual style of the value arrow. More...
 

Properties

lysa.float4[] colors
 The color stops of the gradient drawn in the track, in order.
 
lysa.Rect track_rect
 The rectangle the gradient is drawn into. (read-only)
 
integer steps
 Number of quads used to draw the gradient; higher is smoother.
 
Arrow arrow
 The arrow marking the current value. (read-only)
 

Member Function Documentation

lysa.float4 color_at ( number  ratio)

Returns the interpolated gradient color at a ratio in [0.0, 1.0].

Parameters
rationumber
Returns
lysa.float4
nil set_resources ( string  res_arrow)

Reloads the visual style of the value arrow.

Parameters
res_arrowstring

Property Documentation

lysa.float4[] colors

The color stops of the gradient drawn in the track, in order.

lysa.Rect track_rect

The rectangle the gradient is drawn into. (read-only)

integer steps

Number of quads used to draw the gradient; higher is smoother.

Arrow arrow

The arrow marking the current value. (read-only)