Selaa lähdekoodia

Increase size of Offset field in audio import dialog

kobewi 8 kuukautta sitten
vanhempi
commit
e2a6d53419
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      editor/import/audio_stream_import_settings.cpp

+ 3 - 1
editor/import/audio_stream_import_settings.cpp

@@ -544,7 +544,9 @@ AudioStreamImportSettingsDialog::AudioStreamImportSettingsDialog() {
 	loop_offset = memnew(SpinBox);
 	loop_offset->set_max(10000);
 	loop_offset->set_step(0.001);
-	loop_offset->set_suffix("sec");
+	loop_offset->set_suffix("s");
+	loop_offset->set_h_size_flags(Control::SIZE_EXPAND_FILL);
+	loop_offset->set_stretch_ratio(0.33);
 	loop_offset->set_tooltip_text(TTR("Loop offset (from beginning). Note that if BPM is set, this setting will be ignored."));
 	loop_offset->connect(SceneStringName(value_changed), callable_mp(this, &AudioStreamImportSettingsDialog::_settings_changed).unbind(1));
 	loop_hb->add_child(loop_offset);