mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Initial editor accessibility.
This commit is contained in:
parent
4310cb82b8
commit
302fa831cc
137 changed files with 1544 additions and 93 deletions
|
|
@ -279,6 +279,7 @@ GradientTexture2DEditor::GradientTexture2DEditor() {
|
|||
|
||||
reverse_button = memnew(Button);
|
||||
reverse_button->set_tooltip_text(TTR("Swap Gradient Fill Points"));
|
||||
reverse_button->set_accessibility_name(TTRC("Swap Gradient Fill Points"));
|
||||
toolbar->add_child(reverse_button);
|
||||
reverse_button->connect(SceneStringName(pressed), callable_mp(this, &GradientTexture2DEditor::_reverse_button_pressed));
|
||||
|
||||
|
|
@ -286,6 +287,7 @@ GradientTexture2DEditor::GradientTexture2DEditor() {
|
|||
|
||||
snap_button = memnew(Button);
|
||||
snap_button->set_tooltip_text(TTR("Toggle Grid Snap"));
|
||||
snap_button->set_accessibility_name(TTRC("Snap to Grid"));
|
||||
snap_button->set_toggle_mode(true);
|
||||
toolbar->add_child(snap_button);
|
||||
snap_button->connect(SceneStringName(toggled), callable_mp(this, &GradientTexture2DEditor::_set_snap_enabled));
|
||||
|
|
@ -294,6 +296,7 @@ GradientTexture2DEditor::GradientTexture2DEditor() {
|
|||
snap_count_edit->set_min(2);
|
||||
snap_count_edit->set_max(100);
|
||||
snap_count_edit->set_value(DEFAULT_SNAP);
|
||||
snap_count_edit->set_accessibility_name(TTRC("Grid Step"));
|
||||
snap_count_edit->set_custom_minimum_size(Size2(65 * EDSCALE, 0));
|
||||
toolbar->add_child(snap_count_edit);
|
||||
snap_count_edit->connect(SceneStringName(value_changed), callable_mp(this, &GradientTexture2DEditor::_set_snap_count));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue