![]() |
Lysa.ui
0.0
Lysa 3D Engine
|
A pair of two buttons, one incrementing and one decrementing a value. Fires OnClick with the number of steps on each click and on each repetition when a button is held down.
Inherits from: Widget
Lua full name: lysa.ui.SpinButtons
Public Member Functions | |
| nil | set_resources (res_button: string, res_arrow: string) |
| Reloads the visual style: res_button = buttons, res_arrow = button arrows. More... | |
Properties | |
| integer | orientation |
| Placement of the two buttons (see lysa.ui.SpinButtonsOrientation): VERTICAL or HORIZONTAL. | |
| 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. | |
| Button | up_button |
| The button incrementing the value, at the top or at the right. (read-only) | |
| Button | down_button |
| The button decrementing the value, at the bottom or at the left. (read-only) | |
|
Reloads the visual style: res_button = buttons, res_arrow = button arrows.
| res_button | string |
| res_arrow | string |
| integer orientation |
Placement of the two buttons (see lysa.ui.SpinButtonsOrientation): VERTICAL or HORIZONTAL.
| 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.
| Button up_button |
The button incrementing the value, at the top or at the right. (read-only)
| Button down_button |
The button decrementing the value, at the bottom or at the left. (read-only)