Replace radians range hint with radians_as_degrees

This commit is contained in:
A Thousand Ships 2023-09-23 16:27:01 +02:00
parent c12d63556b
commit e45927b2f2
18 changed files with 63 additions and 55 deletions

View file

@ -399,7 +399,7 @@ class EditorPropertyFloat : public EditorProperty {
GDCLASS(EditorPropertyFloat, EditorProperty);
EditorSpinSlider *spin = nullptr;
bool setting = false;
bool angle_in_radians = false;
bool radians_as_degrees = false;
void _value_changed(double p_val);
protected:
@ -408,7 +408,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, bool p_exp_range, bool p_greater, bool p_lesser, const String &p_suffix = String(), bool p_angle_in_radians = false);
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, bool p_exp_range, bool p_greater, bool p_lesser, const String &p_suffix = String(), bool p_radians_as_degrees = false);
EditorPropertyFloat();
};