![]() |
Lysa.ui
0.0
Lysa 3D Engine
|
An editable numeric value with two buttons incrementing and decrementing it. Fires OnValueChange.
Inherits from: ValueSelect
Lua full name: lysa.ui.SpinBox
Public Member Functions | |
| nil | set_resources (res_text_edit: string) |
| Reloads the visual style of the text field. More... | |
Properties | |
| integer | precision |
| Number of decimals displayed, zero for an integer value. | |
| number | buttons_width |
| Width in virtual screen units of the increment/decrement buttons column. | |
| integer | repeat_delay |
| Milliseconds a button must be held down before it starts repeating. | |
| integer | repeat_interval |
| Milliseconds between two repeats while a button is held down. | |
| boolean | read_only |
| True if the value can't be typed in the text field. | |
| string | text |
| The value as displayed in the text field. (read-only) | |
| TextEdit | text_edit |
| The editable text field displaying the value. (read-only) | |
| SpinButtons | buttons |
| The column of the two buttons. (read-only) | |
| integer | buttons_placement |
| Side of the text field where the two buttons are placed (see lysa.ui.SpinBoxButtonsPlacement): RIGHT or LEFT. | |
| Button | up_button |
| The button incrementing the value. (read-only) | |
| Button | down_button |
| The button decrementing the value. (read-only) | |
|
Reloads the visual style of the text field.
| res_text_edit | string |
| integer precision |
Number of decimals displayed, zero for an integer value.
| number buttons_width |
Width in virtual screen units of the increment/decrement buttons column.
| integer repeat_delay |
Milliseconds a button must be held down before it starts repeating.
| integer repeat_interval |
Milliseconds between two repeats while a button is held down.
| boolean read_only |
True if the value can't be typed in the text field.
| string text |
The value as displayed in the text field. (read-only)
| TextEdit text_edit |
The editable text field displaying the value. (read-only)
| SpinButtons buttons |
The column of the two buttons. (read-only)
| integer buttons_placement |
Side of the text field where the two buttons are placed (see lysa.ui.SpinBoxButtonsPlacement): RIGHT or LEFT.
| Button up_button |
The button incrementing the value. (read-only)
| Button down_button |
The button decrementing the value. (read-only)