From b4ab521e0f6a444a61bd1c9f379126d74033cdb3 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 29 Jan 2024 10:26:13 +0100 Subject: [PATCH] Editor: Improve tooltips in the property editors --- editor/editor_property_bb_param.cpp | 4 ++-- editor/editor_property_variable_name.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/editor_property_bb_param.cpp b/editor/editor_property_bb_param.cpp index 19c18c9..85aea1a 100644 --- a/editor/editor_property_bb_param.cpp +++ b/editor/editor_property_bb_param.cpp @@ -316,8 +316,8 @@ void EditorPropertyBBParam::_notification(int p_what) { // Initialize mode button. mode_button->clear(); - mode_button->add_mode(Mode::SPECIFY_VALUE, get_editor_theme_icon(SNAME("LimboSpecifyValue")), TTR("Mode: Specify value.\nClick to switch mode.")); - mode_button->add_mode(Mode::BIND_VAR, get_editor_theme_icon(SNAME("BTSetVar")), TTR("Mode: Use blackboard variable.\nClick to switch mode.")); + mode_button->add_mode(Mode::SPECIFY_VALUE, get_editor_theme_icon(SNAME("LimboSpecifyValue")), TTR("Mode: Set a specific value.\nClick to switch modes.")); + mode_button->add_mode(Mode::BIND_VAR, get_editor_theme_icon(SNAME("BTSetVar")), TTR("Mode: Use a blackboard variable.\nClick to switch modes.")); mode_button->set_mode(_get_edited_param()->get_value_source() == BBParam::BLACKBOARD_VAR ? Mode::BIND_VAR : Mode::SPECIFY_VALUE, true); bool is_variant_param = _get_edited_param()->is_class_ptr(BBVariant::get_class_ptr_static()); diff --git a/editor/editor_property_variable_name.cpp b/editor/editor_property_variable_name.cpp index 8e67a0e..ed51c18 100644 --- a/editor/editor_property_variable_name.cpp +++ b/editor/editor_property_variable_name.cpp @@ -73,13 +73,13 @@ void EditorPropertyVariableName::_update_status() { } if (plan->has_var(name_edit->get_text())) { BUTTON_SET_ICON(status_btn, theme_cache.var_exists_icon); - status_btn->set_tooltip_text(TTR("This variable exists in the blackboard plan.\n\nClick to open blackboard plan.")); + status_btn->set_tooltip_text(TTR("This variable is present in the blackboard plan.\nClick to open the blackboard plan.")); } else if (name_edit->get_text().begins_with("_")) { BUTTON_SET_ICON(status_btn, theme_cache.var_private_icon); - status_btn->set_tooltip_text(TTR("Variable is private and doesn't exist in the blackboard plan.\n\nClick to open blackboard plan.")); + status_btn->set_tooltip_text(TTR("This variable is private and is not included in the blackboard plan.\nClick to open the blackboard plan.")); } else { BUTTON_SET_ICON(status_btn, theme_cache.var_not_found_icon); - status_btn->set_tooltip_text(TTR("No such variable exists in the blackboard plan!\n\nClick to open blackboard plan.")); + status_btn->set_tooltip_text(TTR("No matching variable found in the blackboard plan!\nClick to open the blackboard plan.")); } }