From ea622a16dd88ec1c13750e30555d4de421d95be7 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 6 Sep 2019 23:24:31 +0200 Subject: Display audio buses' current volume in a tooltip when hovering slider This also removes an unused editor icon. This closes #30884. --- editor/editor_audio_buses.cpp | 3 ++- editor/icons/icon_bus_vu_db.svg | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 editor/icons/icon_bus_vu_db.svg (limited to 'editor') diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index 2180742bbb..a6328ea50f 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -378,6 +378,7 @@ float EditorAudioBus::_scaled_db_to_normalized_volume(float db) { void EditorAudioBus::_show_value(float slider_value) { String text = vformat("%10.1f dB", _normalized_volume_to_scaled_db(slider_value)); + slider->set_tooltip(text); audio_value_preview_label->set_text(text); Vector2 slider_size = slider->get_size(); Vector2 slider_position = slider->get_global_position(); @@ -773,7 +774,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) { is_master = p_is_master; hovering_drop = false; - set_tooltip(TTR("Audio Bus, Drag and Drop to rearrange.")); + set_tooltip(TTR("Drag & drop to rearrange.")); VBoxContainer *vb = memnew(VBoxContainer); add_child(vb); diff --git a/editor/icons/icon_bus_vu_db.svg b/editor/icons/icon_bus_vu_db.svg deleted file mode 100644 index 236e41e1f5..0000000000 --- a/editor/icons/icon_bus_vu_db.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - -- cgit v1.2.3