Merge pull request #64885 from Mickeon/rename-tooltip-hint
Rename `hint_tooltip` to `tooltip_text` & setter getter
This commit is contained in:
commit
f7f8af232c
85 changed files with 468 additions and 463 deletions
|
|
@ -525,7 +525,7 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
loop_hb->add_theme_constant_override("separation", 4 * EDSCALE);
|
||||
loop = memnew(CheckBox);
|
||||
loop->set_text(TTR("Enable"));
|
||||
loop->set_tooltip(TTR("Enable looping."));
|
||||
loop->set_tooltip_text(TTR("Enable looping."));
|
||||
loop->connect("toggled", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
loop_hb->add_child(loop);
|
||||
loop_hb->add_spacer();
|
||||
|
|
@ -534,7 +534,7 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
loop_offset->set_max(10000);
|
||||
loop_offset->set_step(0.001);
|
||||
loop_offset->set_suffix("sec");
|
||||
loop_offset->set_tooltip(TTR("Loop offset (from beginning). Note that if BPM is set, this setting will be ignored."));
|
||||
loop_offset->set_tooltip_text(TTR("Loop offset (from beginning). Note that if BPM is set, this setting will be ignored."));
|
||||
loop_offset->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
loop_hb->add_child(loop_offset);
|
||||
main_vbox->add_margin_child(TTR("Loop:"), loop_hb);
|
||||
|
|
@ -548,14 +548,14 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
bpm_edit = memnew(SpinBox);
|
||||
bpm_edit->set_max(400);
|
||||
bpm_edit->set_step(0.01);
|
||||
bpm_edit->set_tooltip(TTR("Configure the Beats Per Measure (tempo) used for the interactive streams.\nThis is required in order to configure beat information."));
|
||||
bpm_edit->set_tooltip_text(TTR("Configure the Beats Per Measure (tempo) used for the interactive streams.\nThis is required in order to configure beat information."));
|
||||
bpm_edit->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
interactive_hb->add_child(bpm_edit);
|
||||
interactive_hb->add_spacer();
|
||||
bar_beats_label = memnew(Label(TTR("Beats/Bar:")));
|
||||
interactive_hb->add_child(bar_beats_label);
|
||||
bar_beats_edit = memnew(SpinBox);
|
||||
bar_beats_edit->set_tooltip(TTR("Configure the Beats Per Bar. This used for music-aware transitions between AudioStreams."));
|
||||
bar_beats_edit->set_tooltip_text(TTR("Configure the Beats Per Bar. This used for music-aware transitions between AudioStreams."));
|
||||
bar_beats_edit->set_min(2);
|
||||
bar_beats_edit->set_max(32);
|
||||
bar_beats_edit->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
|
|
@ -566,7 +566,7 @@ AudioStreamImportSettings::AudioStreamImportSettings() {
|
|||
beats_enabled->connect("toggled", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
interactive_hb->add_child(beats_enabled);
|
||||
beats_edit = memnew(SpinBox);
|
||||
beats_edit->set_tooltip(TTR("Configure the amount of Beats used for music-aware looping. If zero, it will be autodetected from the length.\nIt is recommended to set this value (either manually or by clicking on a beat number in the preview) to ensure looping works properly."));
|
||||
beats_edit->set_tooltip_text(TTR("Configure the amount of Beats used for music-aware looping. If zero, it will be autodetected from the length.\nIt is recommended to set this value (either manually or by clicking on a beat number in the preview) to ensure looping works properly."));
|
||||
beats_edit->set_max(99999);
|
||||
beats_edit->connect("value_changed", callable_mp(this, &AudioStreamImportSettings::_settings_changed).unbind(1));
|
||||
interactive_hb->add_child(beats_edit);
|
||||
|
|
|
|||
|
|
@ -1238,7 +1238,7 @@ DynamicFontImportSettings::DynamicFontImportSettings() {
|
|||
|
||||
add_var = memnew(Button);
|
||||
page2_hb_vars->add_child(add_var);
|
||||
add_var->set_tooltip(TTR("Add configuration"));
|
||||
add_var->set_tooltip_text(TTR("Add configuration"));
|
||||
add_var->set_icon(add_var->get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
add_var->connect("pressed", callable_mp(this, &DynamicFontImportSettings::_variation_add));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue