mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename hint_tooltip
to tooltip_text
& setget
`hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
This commit is contained in:
parent
4808d01b2b
commit
ef5b9a06a9
85 changed files with 468 additions and 463 deletions
|
@ -732,9 +732,9 @@ InputEventConfigurationDialog::InputEventConfigurationDialog() {
|
|||
store_command_checkbox->set_pressed(true);
|
||||
store_command_checkbox->set_text(TTR("Store Command"));
|
||||
#ifdef APPLE_STYLE_KEYS
|
||||
store_command_checkbox->set_tooltip(TTR("Toggles between serializing 'command' and 'meta'. Used for compatibility with Windows/Linux style keyboard."));
|
||||
store_command_checkbox->set_tooltip_text(TTR("Toggles between serializing 'command' and 'meta'. Used for compatibility with Windows/Linux style keyboard."));
|
||||
#else
|
||||
store_command_checkbox->set_tooltip(TTR("Toggles between serializing 'command' and 'control'. Used for compatibility with Apple Style keyboards."));
|
||||
store_command_checkbox->set_tooltip_text(TTR("Toggles between serializing 'command' and 'control'. Used for compatibility with Apple Style keyboards."));
|
||||
#endif
|
||||
mod_container->add_child(store_command_checkbox);
|
||||
|
||||
|
@ -745,7 +745,7 @@ InputEventConfigurationDialog::InputEventConfigurationDialog() {
|
|||
|
||||
physical_key_checkbox = memnew(CheckBox);
|
||||
physical_key_checkbox->set_text(TTR("Use Physical Keycode"));
|
||||
physical_key_checkbox->set_tooltip(TTR("Stores the physical position of the key on the keyboard rather than the key's value. Used for compatibility with non-latin layouts.\nThis should generally be enabled for most game shortcuts, but not in non-game applications."));
|
||||
physical_key_checkbox->set_tooltip_text(TTR("Stores the physical position of the key on the keyboard rather than the key's value. Used for compatibility with non-latin layouts.\nThis should generally be enabled for most game shortcuts, but not in non-game applications."));
|
||||
physical_key_checkbox->connect("toggled", callable_mp(this, &InputEventConfigurationDialog::_physical_keycode_toggled));
|
||||
physical_key_checkbox->hide();
|
||||
additional_options_container->add_child(physical_key_checkbox);
|
||||
|
@ -805,7 +805,7 @@ String ActionMapEditor::_check_new_action_name(const String &p_name) {
|
|||
|
||||
void ActionMapEditor::_add_edit_text_changed(const String &p_name) {
|
||||
String error = _check_new_action_name(p_name);
|
||||
add_button->set_tooltip(error);
|
||||
add_button->set_tooltip_text(error);
|
||||
add_button->set_disabled(!error.is_empty());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue