Browse Source

Merge pull request #103029 from KoBeWi/increase_offset

Increase size of Offset field in audio import dialog
Thaddeus Crews 4 tháng trước cách đây
mục cha
commit
a19cb97642
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      editor/import/audio_stream_import_settings.cpp

+ 3 - 1
editor/import/audio_stream_import_settings.cpp

@@ -551,7 +551,9 @@ AudioStreamImportSettingsDialog::AudioStreamImportSettingsDialog() {
 	loop_offset->set_accessibility_name(TTRC("Loop Offset"));
 	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);