Slider
Updated for 3.36.
It's recommended to first read about the base item before reading about other items https://luffyyy.gitbook.io/beardlib/menuui/menuui-item
Slider
Creation
Parameters
Parameter | Type | Description |
---|---|---|
value | Number | Value of the slider, has to be in range of the set min/max. Defaults to 0 |
min | Number | The minimum value that can be set in the slider. Defaults to |
max | Number | The maximum value that can be set in the slider. Defaults to |
step | Number | How much should be added/subtracted to the value every time you increase/decresae the number using wheel control. Defaults to 1 |
floats | Number | How much decimal points does the number allowed to have? Defaults to 3 and can be inherited |
wheel_control | Boolean | Should the slider be controlled by the mouse wheel as well? Defaults to false and can be inherited |
Functions
Get
Function | Return Type | Description |
---|---|---|
Value() | Number | Returns the number value of the slider |
Set
Function | Description |
---|---|
SetValue(Number value, Boolean run_callback) | Sets the value of the item. |
SetValueByPercentage(Number percent, Boolean run_callback) | like |
SetStep(Number step) | Sets the step value |
Last updated