CustomSlider ​
Inherits: HBoxContainer
CustomSlider - Labeled slider control for blend shape and other value adjustments Emits value_changed signal with the new value when slider changes
Properties ​
String | label_text | "": |
float | min_value | 0.0: |
float | max_value | 1.0: |
float | step | 0.01: |
float | initial_value | 0.5: |
bool | show_value_label | true |
Methods ​
void | set_label( text: String ) |
float | get_value() |
void | set_value_silent( value: float ) |
void | set_value( value: float ) |
void | reset() |
Signals ​
value_changed( value: float ) ​
Emitted when the slider moves: the new value.
Property descriptions ​
String label_text = "": ​
The text of the label.
float min_value = 0.0: ​
The lowest value.
float max_value = 1.0: ​
The highest value.
float step = 0.01: ​
How much the value changes in a step.
float initial_value = 0.5: ​
The value the slider starts with.
bool show_value_label = true ​
True shows the number next to the slider.
Method descriptions ​
void set_label( text: String ) ​
Set the label text
float get_value() ​
Get current slider value
void set_value_silent( value: float ) ​
Set slider value without emitting signal
void set_value( value: float ) ​
Set slider value (emits signal)
void reset() ​
Reset to initial value