mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Cleanup accessibility names.
This commit is contained in:
parent
242b8ff80a
commit
a272376f89
97 changed files with 188 additions and 440 deletions
|
|
@ -9203,7 +9203,6 @@ Node3DEditor::Node3DEditor() {
|
|||
tool_button[TOOL_MODE_LIST_SELECT]->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->connect(SceneStringName(pressed), callable_mp(this, &Node3DEditor::_menu_item_pressed).bind(MENU_TOOL_LIST_SELECT));
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->set_tooltip_text(TTRC("Show list of selectable nodes at position clicked."));
|
||||
tool_button[TOOL_MODE_LIST_SELECT]->set_accessibility_name(TTRC("Show List of Selectable Nodes"));
|
||||
|
||||
tool_button[TOOL_LOCK_SELECTED] = memnew(Button);
|
||||
main_menu_hbox->add_child(tool_button[TOOL_LOCK_SELECTED]);
|
||||
|
|
@ -9275,7 +9274,7 @@ Node3DEditor::Node3DEditor() {
|
|||
sun_button = memnew(Button);
|
||||
sun_button->set_tooltip_text(TTRC("Toggle preview sunlight.\nIf a DirectionalLight3D node is added to the scene, preview sunlight is disabled."));
|
||||
sun_button->set_toggle_mode(true);
|
||||
sun_button->set_accessibility_name(TTRC("Preview Sunlight"));
|
||||
sun_button->set_accessibility_name(TTRC("Toggle preview sunlight."));
|
||||
sun_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
sun_button->connect(SceneStringName(pressed), callable_mp(this, &Node3DEditor::_update_preview_environment), CONNECT_DEFERRED);
|
||||
// Preview is enabled by default - ensure this applies on editor startup when there is no state yet.
|
||||
|
|
@ -9286,7 +9285,7 @@ Node3DEditor::Node3DEditor() {
|
|||
environ_button = memnew(Button);
|
||||
environ_button->set_tooltip_text(TTRC("Toggle preview environment.\nIf a WorldEnvironment node is added to the scene, preview environment is disabled."));
|
||||
environ_button->set_toggle_mode(true);
|
||||
environ_button->set_accessibility_name(TTRC("Preview Environment"));
|
||||
environ_button->set_accessibility_name(TTRC("Toggle preview environment."));
|
||||
environ_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
environ_button->connect(SceneStringName(pressed), callable_mp(this, &Node3DEditor::_update_preview_environment), CONNECT_DEFERRED);
|
||||
// Preview is enabled by default - ensure this applies on editor startup when there is no state yet.
|
||||
|
|
@ -9297,7 +9296,6 @@ Node3DEditor::Node3DEditor() {
|
|||
sun_environ_settings = memnew(Button);
|
||||
sun_environ_settings->set_tooltip_text(TTRC("Edit Sun and Environment settings."));
|
||||
sun_environ_settings->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
sun_environ_settings->set_accessibility_name(TTRC("Edit Sun and Environment"));
|
||||
sun_environ_settings->connect(SceneStringName(pressed), callable_mp(this, &Node3DEditor::_sun_environ_settings_pressed));
|
||||
|
||||
main_menu_hbox->add_child(sun_environ_settings);
|
||||
|
|
@ -9444,17 +9442,17 @@ Node3DEditor::Node3DEditor() {
|
|||
|
||||
snap_translate = memnew(LineEdit);
|
||||
snap_translate->set_select_all_on_focus(true);
|
||||
snap_translate->set_accessibility_name(TTRC("Translate Snap"));
|
||||
snap_translate->set_accessibility_name(TTRC("Translate Snap:"));
|
||||
snap_dialog_vbc->add_margin_child(TTRC("Translate Snap:"), snap_translate);
|
||||
|
||||
snap_rotate = memnew(LineEdit);
|
||||
snap_rotate->set_select_all_on_focus(true);
|
||||
snap_rotate->set_accessibility_name(TTRC("Rotate Snap"));
|
||||
snap_rotate->set_accessibility_name(TTRC("Rotate Snap (deg.):"));
|
||||
snap_dialog_vbc->add_margin_child(TTRC("Rotate Snap (deg.):"), snap_rotate);
|
||||
|
||||
snap_scale = memnew(LineEdit);
|
||||
snap_scale->set_select_all_on_focus(true);
|
||||
snap_scale->set_accessibility_name(TTRC("Scale Snap"));
|
||||
snap_scale->set_accessibility_name(TTRC("Scale Snap (%):"));
|
||||
snap_dialog_vbc->add_margin_child(TTRC("Scale Snap (%):"), snap_scale);
|
||||
|
||||
/* SETTINGS DIALOG */
|
||||
|
|
@ -9473,14 +9471,14 @@ Node3DEditor::Node3DEditor() {
|
|||
settings_fov->set_value(EDITOR_GET("editors/3d/default_fov"));
|
||||
settings_fov->set_select_all_on_focus(true);
|
||||
settings_fov->set_tooltip_text(TTRC("FOV is defined as a vertical value, as the editor camera always uses the Keep Height aspect mode."));
|
||||
settings_fov->set_accessibility_name(TTRC("Perspective VFOV"));
|
||||
settings_fov->set_accessibility_name(TTRC("Perspective VFOV (deg.):"));
|
||||
settings_vbc->add_margin_child(TTRC("Perspective VFOV (deg.):"), settings_fov);
|
||||
|
||||
settings_znear = memnew(SpinBox);
|
||||
settings_znear->set_max(MAX_Z);
|
||||
settings_znear->set_min(MIN_Z);
|
||||
settings_znear->set_step(0.01);
|
||||
settings_znear->set_accessibility_name(TTRC("View Z-Near"));
|
||||
settings_znear->set_accessibility_name(TTRC("View Z-Near:"));
|
||||
settings_znear->set_value(EDITOR_GET("editors/3d/default_z_near"));
|
||||
settings_znear->set_select_all_on_focus(true);
|
||||
settings_vbc->add_margin_child(TTRC("View Z-Near:"), settings_znear);
|
||||
|
|
@ -9489,7 +9487,7 @@ Node3DEditor::Node3DEditor() {
|
|||
settings_zfar->set_max(MAX_Z);
|
||||
settings_zfar->set_min(MIN_Z);
|
||||
settings_zfar->set_step(0.1);
|
||||
settings_zfar->set_accessibility_name(TTRC("View Z-Far"));
|
||||
settings_zfar->set_accessibility_name(TTRC("View Z-Far:"));
|
||||
settings_zfar->set_value(EDITOR_GET("editors/3d/default_z_far"));
|
||||
settings_zfar->set_select_all_on_focus(true);
|
||||
settings_vbc->add_margin_child(TTRC("View Z-Far:"), settings_zfar);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue