SpinBox: Add a property to set whether custom_arrow_step rounds value

This commit is contained in:
Luo Zhihao 2025-08-28 00:22:45 +08:00 committed by Thaddeus Crews
parent 9c561027fc
commit 7668360c68
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
4 changed files with 38 additions and 16 deletions

View file

@ -2170,6 +2170,7 @@ ColorPicker::ColorPicker() {
intensity_slider->set_step(0.001);
intensity_value->set_allow_greater(true);
intensity_value->set_custom_arrow_step(1);
intensity_value->set_custom_arrow_round(true);
hex_hbc = memnew(HBoxContainer);
hex_hbc->set_alignment(ALIGNMENT_BEGIN);