Cleanup accessibility names.

This commit is contained in:
Pāvels Nadtočajevs 2025-06-12 07:55:29 +03:00
parent 242b8ff80a
commit a272376f89
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
97 changed files with 188 additions and 440 deletions

View file

@ -2008,13 +2008,11 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
skip_breakpoints->set_theme_type_variation(SceneStringName(FlatButton));
hbc->add_child(skip_breakpoints);
skip_breakpoints->set_tooltip_text(TTR("Skip Breakpoints"));
skip_breakpoints->set_accessibility_name(TTRC("Skip Breakpoints"));
skip_breakpoints->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_skip_breakpoints));
ignore_error_breaks = memnew(Button);
ignore_error_breaks->set_flat(true);
ignore_error_breaks->set_tooltip_text(TTR("Ignore Error Breaks"));
ignore_error_breaks->set_accessibility_name(TTRC("Ignore Error Breaks"));
hbc->add_child(ignore_error_breaks);
ignore_error_breaks->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_ignore_error_breaks));
@ -2024,7 +2022,6 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
copy->set_theme_type_variation(SceneStringName(FlatButton));
hbc->add_child(copy);
copy->set_tooltip_text(TTR("Copy Error"));
copy->set_accessibility_name(TTRC("Copy Error"));
copy->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_copy));
hbc->add_child(memnew(VSeparator));
@ -2033,7 +2030,6 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
step->set_theme_type_variation(SceneStringName(FlatButton));
hbc->add_child(step);
step->set_tooltip_text(TTR("Step Into"));
step->set_accessibility_name(TTRC("Step Into"));
step->set_shortcut(ED_GET_SHORTCUT("debugger/step_into"));
step->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_step));
@ -2041,7 +2037,6 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
next->set_theme_type_variation(SceneStringName(FlatButton));
hbc->add_child(next);
next->set_tooltip_text(TTR("Step Over"));
next->set_accessibility_name(TTRC("Step Over"));
next->set_shortcut(ED_GET_SHORTCUT("debugger/step_over"));
next->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_next));
@ -2051,7 +2046,6 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
dobreak->set_theme_type_variation(SceneStringName(FlatButton));
hbc->add_child(dobreak);
dobreak->set_tooltip_text(TTR("Break"));
dobreak->set_accessibility_name(TTRC("Break"));
dobreak->set_shortcut(ED_GET_SHORTCUT("debugger/break"));
dobreak->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_break));
@ -2059,7 +2053,6 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
docontinue->set_theme_type_variation(SceneStringName(FlatButton));
hbc->add_child(docontinue);
docontinue->set_tooltip_text(TTR("Continue"));
docontinue->set_accessibility_name(TTRC("Continue"));
docontinue->set_shortcut(ED_GET_SHORTCUT("debugger/continue"));
docontinue->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_continue));
@ -2274,7 +2267,6 @@ Instead, use the monitors tab to obtain more precise VRAM usage.
vmem_export = memnew(Button);
vmem_export->set_theme_type_variation(SceneStringName(FlatButton));
vmem_export->set_tooltip_text(TTR("Export list to a CSV file"));
vmem_export->set_accessibility_name(TTRC("Export to CSV"));
vmem_hb->add_child(vmem_export);
vmem_vb->add_child(vmem_hb);
vmem_refresh->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::_video_mem_request));
@ -2318,13 +2310,13 @@ Instead, use the monitors tab to obtain more precise VRAM usage.
misc->add_child(info_left);
clicked_ctrl = memnew(LineEdit);
clicked_ctrl->set_editable(false);
clicked_ctrl->set_accessibility_name(TTRC("Clicked Control"));
clicked_ctrl->set_accessibility_name(TTRC("Clicked Control:"));
clicked_ctrl->set_h_size_flags(SIZE_EXPAND_FILL);
info_left->add_child(memnew(Label(TTR("Clicked Control:"))));
info_left->add_child(clicked_ctrl);
clicked_ctrl_type = memnew(LineEdit);
clicked_ctrl_type->set_editable(false);
clicked_ctrl_type->set_accessibility_name(TTRC("Clicked Control Type"));
clicked_ctrl_type->set_accessibility_name(TTRC("Clicked Control Type:"));
info_left->add_child(memnew(Label(TTR("Clicked Control Type:"))));
info_left->add_child(clicked_ctrl_type);
@ -2332,7 +2324,7 @@ Instead, use the monitors tab to obtain more precise VRAM usage.
live_edit_root = memnew(LineEdit);
live_edit_root->set_editable(false);
live_edit_root->set_h_size_flags(SIZE_EXPAND_FILL);
live_edit_root->set_accessibility_name(TTRC("Live Edit Root"));
live_edit_root->set_accessibility_name(TTRC("Live Edit Root:"));
{
HBoxContainer *lehb = memnew(HBoxContainer);