mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix Spinbox display does not round properly when using decimal custom arrow steps
This commit is contained in:
parent
76a135926a
commit
afeecad92e
2 changed files with 34 additions and 6 deletions
|
|
@ -66,6 +66,7 @@ class SpinBox : public Range {
|
|||
String suffix;
|
||||
String last_updated_text;
|
||||
double custom_arrow_step = 0.0;
|
||||
bool use_custom_arrow_step = false;
|
||||
|
||||
void _line_edit_input(const Ref<InputEvent> &p_event);
|
||||
|
||||
|
|
@ -133,6 +134,7 @@ class SpinBox : public Range {
|
|||
|
||||
void _mouse_exited();
|
||||
void _update_buttons_state_for_current_value();
|
||||
void _set_step_no_signal(double p_step);
|
||||
|
||||
protected:
|
||||
virtual void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue