CurveEditorControl ​
Inherits: VBoxContainer
A control that edits a curve (a growth curve, a falloff) with a drawn preview and a maximum value that can be changed. curve_changed and max_value_changed are emitted when the player edits it.
Properties ​
int | curve_height | 200 |
bool | show_preview | true |
int | preview_samples | 100 |
float | max_value | 500.0 # Configurable max value |
Variables ​
Curve | curve | |
EditorResourcePicker | resource_picker | |
RichTextLabel | preview_label | |
MenuButton | preset_button | |
TextureRect | curve_texture_rect | |
SpinBox | max_value_spinbox |
Methods ​
void | set_max_value( new_max_value: float ) |
float | get_max_value() |
void | set_curve( new_curve: Curve ) |
Curve | get_curve() |
bool | has_curve() |
void | clear_curve() |
void | open_curve_editor() |
float | sample_curve( t: float ) |
void | ensure_curve() |
Signals ​
curve_changed( curve: Curve ) ​
max_value_changed( max_value: float ) ​
Property descriptions ​
int curve_height = 200 ​
No description yet.
bool show_preview = true ​
No description yet.
int preview_samples = 100 ​
No description yet.
float max_value = 500.0 # Configurable max value ​
No description yet.
Variable descriptions ​
Curve curve ​
No description yet.
EditorResourcePicker resource_picker ​
No description yet.
RichTextLabel preview_label ​
No description yet.
MenuButton preset_button ​
No description yet.
TextureRect curve_texture_rect ​
No description yet.
SpinBox max_value_spinbox ​
No description yet.
Method descriptions ​
void set_max_value( new_max_value: float ) ​
No description yet.
float get_max_value() ​
No description yet.
void set_curve( new_curve: Curve ) ​
No description yet.
Curve get_curve() ​
No description yet.
bool has_curve() ​
No description yet.
void clear_curve() ​
No description yet.
void open_curve_editor() ​
No description yet.
float sample_curve( t: float ) ​
No description yet.
void ensure_curve() ​
No description yet.