set_tooltip was renamed set_tooltip_text
parent
dfbd7abfc1
commit
520e7d5931
|
@ -109,8 +109,9 @@ NoiseAnalysisWindow::NoiseAnalysisWindow() {
|
|||
{
|
||||
Label *label = memnew(Label);
|
||||
label->set_text(TTR("Maximum derivative over step length*:"));
|
||||
label->set_tooltip(TTR("Depending on the noise type, this measure can vary due to very small discontinuities, "
|
||||
"so it may be interesting to try multiple step lengths, from shortest to longest."));
|
||||
label->set_tooltip_text(
|
||||
TTR("Depending on the noise type, this measure can vary due to very small discontinuities, "
|
||||
"so it may be interesting to try multiple step lengths, from shortest to longest."));
|
||||
label->set_mouse_filter(Control::MOUSE_FILTER_STOP);
|
||||
vbox_container->add_child(label);
|
||||
}
|
||||
|
|
|
@ -85,7 +85,8 @@ VoxelGraphEditor::VoxelGraphEditor() {
|
|||
|
||||
CheckBox *live_update_checkbox = memnew(CheckBox);
|
||||
live_update_checkbox->set_text(TTR("Live Update"));
|
||||
live_update_checkbox->set_tooltip(TTR("Automatically re-generate the terrain when the generator is modified"));
|
||||
live_update_checkbox->set_tooltip_text(
|
||||
TTR("Automatically re-generate the terrain when the generator is modified"));
|
||||
live_update_checkbox->set_pressed(_live_update_enabled);
|
||||
live_update_checkbox->connect("toggled", callable_mp(this, &VoxelGraphEditor::_on_live_update_toggled));
|
||||
toolbar->add_child(live_update_checkbox);
|
||||
|
@ -97,12 +98,12 @@ VoxelGraphEditor::VoxelGraphEditor() {
|
|||
_pin_button = memnew(Button);
|
||||
_pin_button->set_flat(true);
|
||||
_pin_button->set_toggle_mode(true);
|
||||
_pin_button->set_tooltip(TTR("Pin VoxelGraphEditor"));
|
||||
_pin_button->set_tooltip_text(TTR("Pin VoxelGraphEditor"));
|
||||
toolbar->add_child(_pin_button);
|
||||
|
||||
_popout_button = memnew(Button);
|
||||
_popout_button->set_flat(true);
|
||||
_popout_button->set_tooltip(TTR("Pop-out as separate window"));
|
||||
_popout_button->set_tooltip_text(TTR("Pop-out as separate window"));
|
||||
_popout_button->connect("pressed", callable_mp(this, &VoxelGraphEditor::_on_popout_button_pressed));
|
||||
toolbar->add_child(_popout_button);
|
||||
|
||||
|
@ -648,7 +649,7 @@ void VoxelGraphEditor::update_previews(bool with_live_update) {
|
|||
ERR_PRINT(String("Voxel graph compilation failed: {0}").format(varray(result.message)));
|
||||
|
||||
_compile_result_label->set_text(result.message);
|
||||
_compile_result_label->set_tooltip(result.message);
|
||||
_compile_result_label->set_tooltip_text(result.message);
|
||||
_compile_result_label->set_modulate(Color(1, 0.3, 0.1));
|
||||
_compile_result_label->show();
|
||||
|
||||
|
|
|
@ -237,14 +237,14 @@ void VoxelGraphEditorNode::update_range_analysis_tooltips(
|
|||
}
|
||||
const math::Interval range = state.get_range(address);
|
||||
Control *label = _output_labels[port_index];
|
||||
label->set_tooltip(String("Min: {0}\nMax: {1}").format(varray(range.min, range.max)));
|
||||
label->set_tooltip_text(String("Min: {0}\nMax: {1}").format(varray(range.min, range.max)));
|
||||
}
|
||||
}
|
||||
|
||||
void VoxelGraphEditorNode::clear_range_analysis_tooltips() {
|
||||
for (unsigned int i = 0; i < _output_labels.size(); ++i) {
|
||||
Control *oc = _output_labels[i];
|
||||
oc->set_tooltip("");
|
||||
oc->set_tooltip_text("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,9 @@ void VoxelInstanceLibraryMultiMeshItemInspectorPlugin::parse_group(Object *p_obj
|
|||
// TODO I preferred this at the end of the group, but Godot doesn't expose anything to do it.
|
||||
// This is a legacy workflow, we'll see if it can be removed later.
|
||||
Button *button = memnew(Button);
|
||||
button->set_tooltip(TTR("Set properties based on an existing scene. This might copy mesh and material data if "
|
||||
"the scene embeds them. Properties will not update if the scene changes later."));
|
||||
button->set_tooltip_text(
|
||||
TTR("Set properties based on an existing scene. This might copy mesh and material data if "
|
||||
"the scene embeds them. Properties will not update if the scene changes later."));
|
||||
button->set_text(TTR("Update from scene..."));
|
||||
// Using a bind() instead of relying on "currently edited" item in the editor plugin allows to support multiple
|
||||
// sub-inspectors. Plugins are not instanced per-inspected-object, but custom controls are.
|
||||
|
|
|
@ -59,7 +59,7 @@ private:
|
|||
CRASH_COND(stat.label != nullptr);
|
||||
Label *name_label = memnew(Label);
|
||||
name_label->set_text(short_name);
|
||||
name_label->set_tooltip(long_name);
|
||||
name_label->set_tooltip_text(long_name);
|
||||
name_label->set_mouse_filter(Control::MOUSE_FILTER_PASS); // Necessary for tooltip to work
|
||||
add_child(name_label);
|
||||
stat.label = memnew(Label);
|
||||
|
|
Loading…
Reference in New Issue