You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Initial editor accessibility.
This commit is contained in:
@@ -659,6 +659,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||
|
||||
search_box = memnew(LineEdit);
|
||||
search_box->set_placeholder(TTR("Filter Settings"));
|
||||
search_box->set_accessibility_name(TTRC("Filter Settings"));
|
||||
search_box->set_clear_button_enabled(true);
|
||||
search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
search_bar->add_child(search_box);
|
||||
@@ -672,17 +673,20 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||
|
||||
property_box = memnew(LineEdit);
|
||||
property_box->set_placeholder(TTR("Select a Setting or Type its Name"));
|
||||
property_box->set_accessibility_name(TTRC("Setting Name"));
|
||||
property_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
property_box->connect(SceneStringName(text_changed), callable_mp(this, &ProjectSettingsEditor::_property_box_changed));
|
||||
custom_properties->add_child(property_box);
|
||||
|
||||
feature_box = memnew(OptionButton);
|
||||
feature_box->set_custom_minimum_size(Size2(120, 0) * EDSCALE);
|
||||
feature_box->set_accessibility_name(TTRC("Feature"));
|
||||
feature_box->connect(SceneStringName(item_selected), callable_mp(this, &ProjectSettingsEditor::_feature_selected));
|
||||
custom_properties->add_child(feature_box);
|
||||
|
||||
type_box = memnew(OptionButton);
|
||||
type_box->set_custom_minimum_size(Size2(120, 0) * EDSCALE);
|
||||
type_box->set_accessibility_name(TTRC("Type"));
|
||||
custom_properties->add_child(type_box);
|
||||
|
||||
add_button = memnew(Button);
|
||||
@@ -731,6 +735,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||
restart_close_button = memnew(Button);
|
||||
restart_close_button->set_flat(true);
|
||||
restart_close_button->connect(SceneStringName(pressed), callable_mp(this, &ProjectSettingsEditor::_editor_restart_close));
|
||||
restart_close_button->set_accessibility_name(TTRC("Close"));
|
||||
restart_hb->add_child(restart_close_button);
|
||||
|
||||
action_map_editor = memnew(ActionMapEditor);
|
||||
|
||||
Reference in New Issue
Block a user