Allow to use sliders for integers in EditorSpinSlider

This commit is contained in:
Michael Alexsander
2025-09-12 12:40:07 -03:00
parent ba0da90ba6
commit f16ff829f0
21 changed files with 189 additions and 97 deletions

View File

@ -370,7 +370,7 @@ protected:
public:
virtual void update_property() override;
void setup(int64_t p_min, int64_t p_max, int64_t p_step, bool p_hide_slider, bool p_allow_greater, bool p_allow_lesser, const String &p_suffix = String());
void setup(int64_t p_min, int64_t p_max, int64_t p_step, bool p_prefer_slider, bool p_hide_control, bool p_allow_greater, bool p_allow_lesser, const String &p_suffix = String());
EditorPropertyInteger();
};
@ -421,7 +421,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_radians_as_degrees = false);
void setup(double p_min, double p_max, double p_step, bool p_hide_control, bool p_exp_range, bool p_greater, bool p_lesser, const String &p_suffix = String(), bool p_radians_as_degrees = false);
EditorPropertyFloat();
};
@ -477,7 +477,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyRect2(bool p_force_wide = false);
};
@ -507,7 +507,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyPlane(bool p_force_wide = false);
};
@ -539,7 +539,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String(), bool p_hide_editor = false);
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String(), bool p_hide_editor = false);
EditorPropertyQuaternion();
};
@ -554,7 +554,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyAABB();
};
@ -569,7 +569,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyTransform2D(bool p_include_origin = true);
};
@ -584,7 +584,7 @@ protected:
public:
virtual void update_property() override;
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyBasis();
};
@ -600,7 +600,7 @@ protected:
public:
virtual void update_property() override;
virtual void update_using_transform(Transform3D p_transform);
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyTransform3D();
};
@ -616,7 +616,7 @@ protected:
public:
virtual void update_property() override;
virtual void update_using_transform(Projection p_transform);
void setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix = String());
void setup(double p_min, double p_max, double p_step, bool p_hide_control, const String &p_suffix = String());
EditorPropertyProjection();
};