AudioStreamImport: Allow waveform resize

This commit is contained in:
Lalit Shankar Chowdhury 2024-09-27 22:34:59 +05:30
parent 1fc8208765
commit c574377a1c
No known key found for this signature in database
GPG Key ID: 86C194734C5D950E
1 changed files with 1 additions and 3 deletions

View File

@ -580,12 +580,10 @@ AudioStreamImportSettingsDialog::AudioStreamImportSettingsDialog() {
bar_beats_edit->set_max(32); bar_beats_edit->set_max(32);
bar_beats_edit->connect(SceneStringName(value_changed), callable_mp(this, &AudioStreamImportSettingsDialog::_settings_changed).unbind(1)); bar_beats_edit->connect(SceneStringName(value_changed), callable_mp(this, &AudioStreamImportSettingsDialog::_settings_changed).unbind(1));
interactive_hb->add_child(bar_beats_edit); interactive_hb->add_child(bar_beats_edit);
interactive_hb->add_spacer();
main_vbox->add_margin_child(TTR("Music Playback:"), interactive_hb); main_vbox->add_margin_child(TTR("Music Playback:"), interactive_hb);
color_rect = memnew(ColorRect); color_rect = memnew(ColorRect);
main_vbox->add_margin_child(TTR("Preview:"), color_rect); main_vbox->add_margin_child(TTR("Preview:"), color_rect, true);
color_rect->set_custom_minimum_size(Size2(600, 200) * EDSCALE); color_rect->set_custom_minimum_size(Size2(600, 200) * EDSCALE);
color_rect->set_v_size_flags(Control::SIZE_EXPAND_FILL); color_rect->set_v_size_flags(Control::SIZE_EXPAND_FILL);