You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Initial editor accessibility.
This commit is contained in:
@@ -552,6 +552,7 @@ void ControlEditorPresetPicker::_add_row_button(HBoxContainer *p_row, const int
|
||||
b->set_custom_minimum_size(Size2i(36, 36) * EDSCALE);
|
||||
b->set_icon_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
b->set_tooltip_text(p_name);
|
||||
b->set_accessibility_name(p_name);
|
||||
b->set_flat(true);
|
||||
p_row->add_child(b);
|
||||
b->connect(SceneStringName(pressed), callable_mp(this, &ControlEditorPresetPicker::_preset_button_pressed).bind(p_preset));
|
||||
@@ -1085,6 +1086,7 @@ ControlEditorToolbar::ControlEditorToolbar() {
|
||||
anchor_mode_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
anchor_mode_button->set_toggle_mode(true);
|
||||
anchor_mode_button->set_tooltip_text(TTR("When active, moving Control nodes changes their anchors instead of their offsets."));
|
||||
anchor_mode_button->set_accessibility_name(TTRC("Change Anchors"));
|
||||
add_child(anchor_mode_button);
|
||||
anchor_mode_button->connect(SceneStringName(toggled), callable_mp(this, &ControlEditorToolbar::_anchor_mode_toggled));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user