Merge pull request #32020 from Calinou/editor-audio-bus-display-tooltip
Display audio buses' current volume in a tooltip when hovering slider
This commit is contained in:
commit
5ffae0d299
2 changed files with 2 additions and 13 deletions
|
@ -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);
|
||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 8.5 KiB |
Loading…
Reference in a new issue